<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/funcobject.c, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/funcobject.c?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/funcobject.c?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-10-28T16:32:00Z</updated>
<entry>
<title>Wrote down the invariants of some common objects whose structure is</title>
<updated>2004-10-28T16:32:00Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-10-28T16:32:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=89a39461bff04b80bb4857790350e1ab30ff2df9'/>
<id>urn:sha1:89a39461bff04b80bb4857790350e1ab30ff2df9</id>
<content type='text'>
exposed in header files.  Fixed a few comments in these headers.

As we might have expected, writing down invariants systematically exposed a
(minor) bug.  In this case, function objects have a writeable func_code
attribute, which could be set to code objects with the wrong number of
free variables.  Calling the resulting function segfaulted the interpreter.
Added a corresponding test.
</content>
</entry>
<entry>
<title>This is my patch</title>
<updated>2004-08-12T18:12:44Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2004-08-12T18:12:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5e897959db37752da4c6b476903cdc5e1357093c'/>
<id>urn:sha1:5e897959db37752da4c6b476903cdc5e1357093c</id>
<content type='text'>
[ 1004703 ] Make func_name writable

plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
</content>
</entry>
<entry>
<title>Remove unused macros in .c files</title>
<updated>2004-07-08T01:49:00Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2004-07-08T01:49:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=93468eac728bee757446770f2b26de9cf7edcab6'/>
<id>urn:sha1:93468eac728bee757446770f2b26de9cf7edcab6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Intern __name__.</title>
<updated>2004-03-23T18:40:15Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2004-03-23T18:40:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=321c9ab74c5ae88cd87c0c8263f323a90c28d772'/>
<id>urn:sha1:321c9ab74c5ae88cd87c0c8263f323a90c28d772</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #753451: classmethod abuse --&gt; SystemError</title>
<updated>2003-06-18T01:13:41Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-06-18T01:13:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=be9715398b87df269d0781a7c436e10cfa4a0ea4'/>
<id>urn:sha1:be9715398b87df269d0781a7c436e10cfa4a0ea4</id>
<content type='text'>
Check the argument to classmethod for callability.

Backport candidate.
</content>
</entry>
<entry>
<title>SF bug #692959:  new.function ignores keyword arguments</title>
<updated>2003-05-06T09:01:41Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-05-06T09:01:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8657845e02b1cd4e2e87ae85f538c66160ec187f'/>
<id>urn:sha1:8657845e02b1cd4e2e87ae85f538c66160ec187f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make staticmethods and classmethods participate in GC.</title>
<updated>2003-04-08T21:28:47Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-04-08T21:28:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=400d8ee6fa59bd2969c67cbd1e4f6d9663edb090'/>
<id>urn:sha1:400d8ee6fa59bd2969c67cbd1e4f6d9663edb090</id>
<content type='text'>
If a class was defined inside a function, used a static or class
method, and used super() inside the method body, it would be caught in
an uncollectable cycle.  (Simplified version: The static/class method
object would point to a function object with a closure that referred
to the class.)

Bugfix candidate.
</content>
</entry>
<entry>
<title>Make __module__ writable except in restricted mode (like for classic classes).</title>
<updated>2003-02-18T17:18:35Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-02-18T17:18:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6b29c0147b964e6afa6a09bb8d694bafc30cf7ad'/>
<id>urn:sha1:6b29c0147b964e6afa6a09bb8d694bafc30cf7ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make __module__ settable on functions and methods.</title>
<updated>2003-02-18T17:02:15Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-02-18T17:02:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ff71c98449c7fd2499d51474dbf690eb7f98dabf'/>
<id>urn:sha1:ff71c98449c7fd2499d51474dbf690eb7f98dabf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide __module__ attributes for functions defined in C and Python.</title>
<updated>2003-01-31T18:33:18Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-01-31T18:33:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f0dcc9a9a4629607d4fff79912e8d0c86cd3914'/>
<id>urn:sha1:4f0dcc9a9a4629607d4fff79912e8d0c86cd3914</id>
<content type='text'>
__module__ is the string name of the module the function was defined
in, just like __module__ of classes.  In some cases, particularly for
C functions, the __module__ may be None.

Change PyCFunction_New() from a function to a macro, but keep an
unused copy of the function around so that we don't change the binary
API.

Change pickle's save_global() to use whichmodule() if __module__ is
None, but add the __module__ logic to whichmodule() since it might be
used outside of pickle.
</content>
</entry>
</feed>
