Back to index

python3.2  3.2.2
Classes | Defines | Typedefs | Functions
methodobject.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  PyMethodDef
struct  PyCFunctionObject


#define PyCFunction_Check(op)   (Py_TYPE(op) == &PyCFunction_Type)
#define PyCFunction_GET_FUNCTION(func)   (((PyCFunctionObject *)func) -> m_ml -> ml_meth)
#define PyCFunction_GET_SELF(func)   (((PyCFunctionObject *)func) -> m_self)
#define PyCFunction_GET_FLAGS(func)   (((PyCFunctionObject *)func) -> m_ml -> ml_flags)
#define PyCFunction_New(ML, SELF)   PyCFunction_NewEx((ML), (SELF), NULL)
#define METH_VARARGS   0x0001
#define METH_KEYWORDS   0x0002
#define METH_NOARGS   0x0004
#define METH_O   0x0008
#define METH_CLASS   0x0010
#define METH_STATIC   0x0020
#define METH_COEXIST   0x0040


typedef PyObject *(* PyCFunction )(PyObject *, PyObject *)
typedef PyObject *(* PyCFunctionWithKeywords )(PyObject *, PyObject *, PyObject *)
typedef PyObject *(* PyNoArgsFunction )(PyObject *)
typedef struct PyMethodDef


 PyAPI_DATA (PyTypeObject) PyCFunction_Type
 PyAPI_FUNC (PyCFunction) PyCFunction_GetFunction(PyObject *)
 PyAPI_FUNC (PyObject *) PyCFunction_GetSelf(PyObject *)
 PyAPI_FUNC (int) PyCFunction_GetFlags(PyObject *)

Class Documentation

struct PyMethodDef

Definition at line 39 of file methodobject.h.

Collaboration diagram for PyMethodDef:
Class Members
const char * ml_doc
char * ml_doc
int ml_flags
PyCFunction ml_meth
const char * ml_name
char * ml_name
struct PyCFunctionObject

Definition at line 74 of file methodobject.h.

Collaboration diagram for PyCFunctionObject:
Class Members
PyObject_HEAD PyMethodDef * m_ml
PyObject * m_module
PyObject * m_self

Define Documentation

#define METH_CLASS   0x0010

Definition at line 63 of file methodobject.h.

#define METH_COEXIST   0x0040

Definition at line 71 of file methodobject.h.

#define METH_KEYWORDS   0x0002

Definition at line 55 of file methodobject.h.

#define METH_NOARGS   0x0004

Definition at line 57 of file methodobject.h.

#define METH_O   0x0008

Definition at line 58 of file methodobject.h.

#define METH_STATIC   0x0020

Definition at line 64 of file methodobject.h.

#define METH_VARARGS   0x0001

Definition at line 54 of file methodobject.h.

#define PyCFunction_Check (   op)    (Py_TYPE(op) == &PyCFunction_Type)

Definition at line 16 of file methodobject.h.

#define PyCFunction_GET_FLAGS (   func)    (((PyCFunctionObject *)func) -> m_ml -> ml_flags)

Definition at line 34 of file methodobject.h.

#define PyCFunction_GET_FUNCTION (   func)    (((PyCFunctionObject *)func) -> m_ml -> ml_meth)

Definition at line 30 of file methodobject.h.

#define PyCFunction_GET_SELF (   func)    (((PyCFunctionObject *)func) -> m_self)

Definition at line 32 of file methodobject.h.

#define PyCFunction_New (   ML,
)    PyCFunction_NewEx((ML), (SELF), NULL)

Definition at line 48 of file methodobject.h.

Typedef Documentation

typedef PyObject *(* PyCFunction)(PyObject *, PyObject *)

Definition at line 18 of file methodobject.h.

Definition at line 19 of file methodobject.h.

static struct PyMethodDef
Initial value:
    { "writerow", (PyCFunction)csv_writerow, METH_O, csv_writerow_doc},
    { "writerows", (PyCFunction)csv_writerows, METH_O, csv_writerows_doc},
    { NULL, NULL }

Definition at line 46 of file methodobject.h.

Definition at line 21 of file methodobject.h.

Function Documentation

PyAPI_FUNC ( PyObject ) [read]

Definition at line 2431 of file pythonrun.c.

    return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
PyAPI_FUNC ( int  ) [read]

Definition at line 2410 of file pythonrun.c.