methodobject.h File Reference

Classes

struct  PyMethodDef
 

Macros

#define PyCFunction_CheckExact(op)
 
#define PyCFunction_Check(op)
 
#define PyCFunction_New(ML, SELF)
 
#define PyCFunction_NewEx(ML, SELF, MOD)
 
#define METH_VARARGS
 
#define METH_KEYWORDS
 
#define METH_NOARGS
 
#define METH_O
 
#define METH_CLASS
 
#define METH_STATIC
 
#define METH_COEXIST
 
#define METH_FASTCALL
 
#define METH_STACKLESS
 
#define METH_METHOD
 
#define Py_CPYTHON_METHODOBJECT_H
 

Typedefs

typedef PyObject *(* PyCFunction) (PyObject *, PyObject *)
 
typedef PyObject *(* _PyCFunctionFast) (PyObject *, PyObject *const *, Py_ssize_t)
 
typedef PyObject *(* PyCFunctionWithKeywords) (PyObject *, PyObject *, PyObject *)
 
typedef PyObject *(* _PyCFunctionFastWithKeywords) (PyObject *, PyObject *const *, Py_ssize_t, PyObject *)
 
typedef PyObject *(* PyCMethod) (PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *)
 
typedef struct PyMethodDef PyMethodDef
 

Functions

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

Macro Definition Documentation

◆ PyCFunction_CheckExact

#define PyCFunction_CheckExact (   op)

◆ PyCFunction_Check

#define PyCFunction_Check (   op)

◆ PyCFunction_New

#define PyCFunction_New (   ML,
  SELF 
)

◆ PyCFunction_NewEx

#define PyCFunction_NewEx (   ML,
  SELF,
  MOD 
)

◆ METH_VARARGS

#define METH_VARARGS

◆ METH_KEYWORDS

#define METH_KEYWORDS

◆ METH_NOARGS

#define METH_NOARGS

◆ METH_O

#define METH_O

◆ METH_CLASS

#define METH_CLASS

◆ METH_STATIC

#define METH_STATIC

◆ METH_COEXIST

#define METH_COEXIST

◆ METH_FASTCALL

#define METH_FASTCALL

◆ METH_STACKLESS

#define METH_STACKLESS

◆ METH_METHOD

#define METH_METHOD

◆ Py_CPYTHON_METHODOBJECT_H

#define Py_CPYTHON_METHODOBJECT_H

Typedef Documentation

◆ PyCFunction

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

◆ _PyCFunctionFast

typedef PyObject*(* _PyCFunctionFast) (PyObject *, PyObject *const *, Py_ssize_t)

◆ PyCFunctionWithKeywords

typedef PyObject*(* PyCFunctionWithKeywords) (PyObject *, PyObject *, PyObject *)

◆ _PyCFunctionFastWithKeywords

typedef PyObject*(* _PyCFunctionFastWithKeywords) (PyObject *, PyObject *const *, Py_ssize_t, PyObject *)

◆ PyCMethod

typedef PyObject*(* PyCMethod) (PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *)

◆ PyMethodDef

typedef struct PyMethodDef PyMethodDef

Function Documentation

◆ PyAPI_DATA()

PyAPI_DATA ( PyTypeObject  )

◆ PyAPI_FUNC() [1/3]

PyAPI_FUNC ( PyCFunction  )

◆ PyAPI_FUNC() [2/3]

PyAPI_FUNC ( PyObject )

◆ PyAPI_FUNC() [3/3]

PyAPI_FUNC ( int  )

◆ Py_DEPRECATED()

Py_DEPRECATED ( 3.  9)