cpython/Doc/api
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 Updates to reflect pending changes to the XML conversion process. 2000-11-22 16:42:37 +00:00
abstract.tex Documentation for PyObject_GetIter(), contributed by Greg Chapman 2002-03-11 18:46:29 +00:00
api.tex Break the Python/C API manual into smaller files by chapter. This manual 2001-10-12 19:01:43 +00:00
concrete.tex Add a note that Py_None needs the same reference count treatment as any 2002-03-12 20:12:54 +00:00
exceptions.tex fix a typo in PyErr_Format table and add row for 'p' format char 2002-03-27 13:42:50 +00:00
init.tex Update the description of PyTrace_EXCEPT. 2001-10-16 19:23:55 +00:00
intro.tex Clean up some markup cruft. A number of the macros that take no 2001-11-28 07:26:15 +00:00
memory.tex Break the Python/C API manual into smaller files by chapter. This manual 2001-10-12 19:01:43 +00:00
newtypes.tex Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
refcounting.tex Break the Python/C API manual into smaller files by chapter. This manual 2001-10-12 19:01:43 +00:00
refcounts.dat Correct the refcount information for the PyWeakref_GetObject() function. 2002-02-20 05:07:36 +00:00
utilities.tex Documentation for the new PyArg_UnpackTuple() function. 2001-10-23 21:10:18 +00:00
veryhigh.tex Break the Python/C API manual into smaller files by chapter. This manual 2001-10-12 19:01:43 +00:00