cpython/Objects
Fred Drake 7bf9715a8b Introduce two new flag bits that can be set in a PyMethodDef method
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.
2002-03-28 05:33:33 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Fix leak of NotImplemented in previous checkin to PyNumber_Add(). 2002-03-08 21:28:54 +00:00
bufferobject.c Fix for Bug #216405: 2001-10-19 13:49:35 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c Be smarter about clearing the weakref lists for instances, instance methods, 2001-10-26 17:56:51 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c SF bug 533198: Complex power underflow raises exception. 2002-03-22 02:48:46 +00:00
descrobject.c Add missing methods iterkeys, itervalues and iteritems to 2002-03-25 17:43:22 +00:00
dictobject.c Use pymalloc if it's enabled. 2002-03-22 15:33:15 +00:00
fileobject.c Grow the string buffer at a mildly exponential rate for the getc version 2002-03-23 19:41:34 +00:00
floatobject.c SF bug 525705: [2.2] underflow raise OverflowException. 2002-03-09 04:58:24 +00:00
frameobject.c Fix memory leak in dict_to_map(), SF bug [ #485152 ] memory leak in test_scope. 2001-12-06 15:48:16 +00:00
funcobject.c Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault 2002-03-18 03:09:06 +00:00
intobject.c Bugfix candidate. 2002-02-01 15:34:10 +00:00
iterobject.c Re-enable GC of iter objects. 2002-03-18 20:43:51 +00:00
listobject.c Fix of SF bug #475877 (Mutable subtype instances are hashable). 2001-12-03 16:32:18 +00:00
longobject.c Patch #494047: removes 64-bit ?: to cope on plan9. 2002-03-09 12:02:59 +00:00
methodobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
moduleobject.c Fix for SF bug #529050 - ModuleType.__new__ crash. 2002-03-12 20:37:02 +00:00
object.c Build obmalloc.c directly instead of #include'ing from object.c. 2002-03-23 00:20:15 +00:00
obmalloc.c _PyMalloc_DebugRealloc(): simplify decl of "fresh". 2002-03-24 00:34:21 +00:00
rangeobject.c Use pymalloc if it's enabled. 2002-03-22 15:33:15 +00:00
sliceobject.c Use pymalloc if it's enabled. 2002-03-22 15:33:15 +00:00
stringobject.c Use pymalloc if it's enabled. 2002-03-22 15:33:15 +00:00
structseq.c Use pymalloc if it's enabled. 2002-03-22 15:33:15 +00:00
tupleobject.c _PyTuple_Resize(): this dumped core on tuple(globals()) for me. Turns 2001-12-07 20:00:04 +00:00
typeobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Fix whitespace. 2002-03-25 11:16:18 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
weakrefobject.c Remove weakref free list. This has the side effect of fixing a memory 2002-03-27 15:18:21 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00