_
_
_
_
_
Availability: >= 2.6
Macros for direct access to these values. Type checks are *not* done, so use with care.
Macros for direct access to these values. Type checks are *not* done, so use with care.
_
_
_
_
_
Availability: 2.*
Availability: 2.*
Availability: >= 2.7
Availability: >= 2.7
subclass of PyObject
Availability: 2.*
_
METH_CLASS and METH_STATIC are a little different; these control the construction of methods for a class. These cannot be used for functions in modules.
METH_COEXIST allows a method to be entered eventhough a slot has already filled the entry. When defined, the flag allows a separate method, "__contains__" for example, to coexist with a defined slot like sq_contains.
Flag passed to newmethodobject
METH_NOARGS and METH_O must not be combined with the flags above.
Flag passed to newmethodobject
METH_CLASS and METH_STATIC are a little different; these control the construction of methods for a class. These cannot be used for functions in modules.
Flag passed to newmethodobject
Mirror methodobject.h
Method object interface