python-2.7.6/include/classobject.h File Reference

classobject.h File Reference

Classes

struct  PyClassObject
 
struct  PyInstanceObject
 
struct  PyMethodObject
 

Macros

#define PyClass_Check(op)   ((op)->ob_type == &PyClass_Type)
 
#define PyInstance_Check(op)   ((op)->ob_type == &PyInstance_Type)
 
#define PyMethod_Check(op)   ((op)->ob_type == &PyMethod_Type)
 
#define PyMethod_GET_FUNCTION(meth)   (((PyMethodObject *)meth) -> im_func)
 
#define PyMethod_GET_SELF(meth)   (((PyMethodObject *)meth) -> im_self)
 
#define PyMethod_GET_CLASS(meth)   (((PyMethodObject *)meth) -> im_class)
 

Functions

 PyAPI_DATA (PyTypeObject) PyClass_Type
 
 PyAPI_FUNC (PyObject *) PyClass_New(PyObject *
 
 PyAPI_FUNC (int) PyClass_IsSubclass(PyObject *
 

Variables

 PyInstance_Type
 
 PyMethod_Type
 
PyObjectname
 

Macro Definition Documentation

#define PyClass_Check (   op)    ((op)->ob_type == &PyClass_Type)

Definition at line 41 of file classobject.h.

#define PyInstance_Check (   op)    ((op)->ob_type == &PyInstance_Type)

Definition at line 42 of file classobject.h.

#define PyMethod_Check (   op)    ((op)->ob_type == &PyMethod_Type)

Definition at line 43 of file classobject.h.

#define PyMethod_GET_CLASS (   meth)    (((PyMethodObject *)meth) -> im_class)

Definition at line 73 of file classobject.h.

#define PyMethod_GET_FUNCTION (   meth)    (((PyMethodObject *)meth) -> im_func)

Definition at line 69 of file classobject.h.

#define PyMethod_GET_SELF (   meth)    (((PyMethodObject *)meth) -> im_self)

Definition at line 71 of file classobject.h.

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_FUNC ( PyObject )
PyAPI_FUNC ( int  )

Variable Documentation

PyObject* name

Definition at line 65 of file classobject.h.

PyInstance_Type

Definition at line 39 of file classobject.h.

PyMethod_Type

Definition at line 39 of file classobject.h.

Go to the source code of this file.