deimos.python.methodobject

Mirror methodobject.h

Method object interface

Members

Aliases

PyCFunction
alias PyCFunction = PyObject* function(PyObject*, PyObject*)

_

PyCFunctionWithKeywords
alias PyCFunctionWithKeywords = PyObject* function(PyObject*, PyObject*, PyObject*)

_

PyNoArgsFunction
alias PyNoArgsFunction = PyObject* function(PyObject*)

_

Functions

PyCFunction_Call
PyObject* PyCFunction_Call(PyObject*, PyObject*, PyObject*)

_

PyCFunction_Check
int PyCFunction_Check(PyObject* op)

_

PyCFunction_ClearFreeList
int PyCFunction_ClearFreeList()

Availability: >= 2.6

PyCFunction_GET_FLAGS
auto PyCFunction_GET_FLAGS(PyObject* func)

Macros for direct access to these values. Type checks are *not* done, so use with care.

PyCFunction_GET_FUNCTION
auto PyCFunction_GET_FUNCTION(PyObject* func)
PyCFunction_GET_SELF
auto PyCFunction_GET_SELF(PyObject* func)

Macros for direct access to these values. Type checks are *not* done, so use with care.

PyCFunction_GetFlags
int PyCFunction_GetFlags(PyObject*)

_

PyCFunction_GetFunction
PyCFunction PyCFunction_GetFunction(PyObject*)

_

PyCFunction_GetSelf
PyObject* PyCFunction_GetSelf(PyObject*)

_

PyCFunction_New
PyObject* PyCFunction_New(PyMethodDef* ml, PyObject* self)

_

PyCFunction_NewEx
PyObject* PyCFunction_NewEx(PyMethodDef*, PyObject*, PyObject*)

_

Py_FindMethod
PyObject* Py_FindMethod(PyMethodDef*, PyObject*, const(char)*)

Availability: 2.*

Py_FindMethodInChain
PyObject* Py_FindMethodInChain(PyMethodChain*, PyObject*, const(char)*)

Availability: 2.*

_PyCFunction_DebugMallocStats
void _PyCFunction_DebugMallocStats(FILE* out_)

Availability: >= 2.7

_PyMethod_DebugMallocStats
void _PyMethod_DebugMallocStats(FILE* out_)

Availability: >= 2.7

Structs

PyCFunctionObject
struct PyCFunctionObject

subclass of PyObject

PyMethodChain
struct PyMethodChain

Availability: 2.*

PyMethodDef
struct PyMethodDef

_

Variables

METH_CLASS
enum int METH_CLASS;

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
enum int METH_COEXIST;

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.

METH_KEYWORDS
enum int METH_KEYWORDS;

Flag passed to newmethodobject

METH_NOARGS
enum int METH_NOARGS;
METH_O
enum int METH_O;

METH_NOARGS and METH_O must not be combined with the flags above.

METH_OLDARGS
enum int METH_OLDARGS;

Flag passed to newmethodobject

METH_STATIC
enum int METH_STATIC;

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_VARARGS
enum int METH_VARARGS;

Flag passed to newmethodobject

Meta