Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Macros | Typedefs | Functions
methodobject.h File Reference

Go to the source code of this file.

Classes

struct  PyMethodDef
 
struct  PyMethodChain
 
struct  PyCFunctionObject
 

Macros

#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_OLDARGS   0x0000
 
#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
 

Typedefs

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

Functions

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

Macro Definition Documentation

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

Typedef Documentation

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

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_FUNC ( PyCFunction  )
PyAPI_FUNC ( PyObject )
read
PyAPI_FUNC ( int  )
read

Copyright 2014 Google Inc. All rights reserved.