<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/methodobject.c, branch 2.4</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/methodobject.c?h=2.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/methodobject.c?h=2.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-12-13T11:26:12Z</updated>
<entry>
<title>* Added a new method flag, METH_COEXIST.</title>
<updated>2003-12-13T11:26:12Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-12-13T11:26:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8f5cdaa784f555149adf5e94fd2e989f99d6b1db'/>
<id>urn:sha1:8f5cdaa784f555149adf5e94fd2e989f99d6b1db</id>
<content type='text'>
* Used the flag to optimize set.__contains__(), dict.__contains__(),
  dict.__getitem__(), and list.__getitem__().
</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>
<entry>
<title>PyCFunction_Call():  Combined two switch cases w/ identical bodies.</title>
<updated>2003-01-05T07:22:44Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-01-05T07:22:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=541ceec3e6e0b5b02c2d299ebf8af040d6193a5e'/>
<id>urn:sha1:541ceec3e6e0b5b02c2d299ebf8af040d6193a5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF Patch #661440: Refactor and streamline PyCFunction_Call</title>
<updated>2003-01-04T00:37:53Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-01-04T00:37:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bf43f8af3500dfd98a46551942bf4a7ae4dad976'/>
<id>urn:sha1:bf43f8af3500dfd98a46551942bf4a7ae4dad976</id>
<content type='text'>
Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
a slight improvement in semantics (now detects invalid flag combinations),
and (arguably) improved clarity (making it blindingly clear which flag
combinations are allowed).  All this comes at a cost of a few lines of
code duplication.

* Folded test for METH_KEYWORDS into the switch/case.
* Deferred testing for an empty dictionary until when and where needed.
* Make a similar deferral for filling the "size" variable.
* Inverted the dictionary test so that the common case falls though
  instead of making a jump.
</content>
</entry>
<entry>
<title>Introduce two new flag bits that can be set in a PyMethodDef method</title>
<updated>2002-03-28T05:33:33Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-03-28T05:33:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7bf9715a8b794cb743fdac97a9014102985a3dd3'/>
<id>urn:sha1:7bf9715a8b794cb743fdac97a9014102985a3dd3</id>
<content type='text'>
descriptor, as used for the tp_methods slot of a type.  These new flag
bits are both optional, and mutually exclusive.  Most methods will not
use either.  These flags are used to create special method types which
exist in the same namespace as normal methods without having to use
tedious construction code to insert the new special method objects in
the type's tp_dict after PyType_Ready() has been called.

If METH_CLASS is specified, the method will represent a class method
like that returned by the classmethod() built-in.

If METH_STATIC is specified, the method will represent a static method
like that returned by the staticmethod() built-in.

These flags may not be used in the PyMethodDef table for modules since
these special method types are not meaningful in that case; a
ValueError will be raised if these flags are found in that context.
</content>
</entry>
<entry>
<title>Re-enable GC of method objects.</title>
<updated>2002-03-18T20:44:53Z</updated>
<author>
<name>Neil Schemenauer</name>
<email>nascheme@enme.ucalgary.ca</email>
</author>
<published>2002-03-18T20:44:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d91eec9df3d298a1ffb24b17241ee8af283abf2c'/>
<id>urn:sha1:d91eec9df3d298a1ffb24b17241ee8af283abf2c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add optional docstrings to getset descriptors.  Fortunately, there's</title>
<updated>2001-09-20T21:45:26Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-20T21:45:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=32d34c809f5971f79462dcb7d0f536d46e624acc'/>
<id>urn:sha1:32d34c809f5971f79462dcb7d0f536d46e624acc</id>
<content type='text'>
no backwards compatibility to worry about, so I just pushed the
'closure' struct member to the back -- it's never used in the current
code base (I may eliminate it, but that's more work because the getter
and setter signatures would have to change.)

As examples, I added actual docstrings to the getset attributes of a
few types: file.closed, xxsubtype.spamdict.state.
</content>
</entry>
<entry>
<title>Removed some unreachable break statements to silence SGI compiler.</title>
<updated>2001-08-30T13:58:58Z</updated>
<author>
<name>Sjoerd Mullender</name>
<email>sjoerd@acm.org</email>
</author>
<published>2001-08-30T13:58:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=38b88c233a6706d3a84f372e4b20ab7700f6d79b'/>
<id>urn:sha1:38b88c233a6706d3a84f372e4b20ab7700f6d79b</id>
<content type='text'>
</content>
</entry>
</feed>
