9. Defining New Object Types

PyObject* _PyObject_New(PyTypeObject *type)

PyObject* _PyObject_NewVar(PyTypeObject *type, int size)

TYPE _PyObject_NEW(TYPE, PyTypeObject *)

TYPE _PyObject_NEW_VAR(TYPE, PyTypeObject *, int size)

PyObject, PyVarObject

PyObject_HEAD, PyObject_HEAD_INIT, PyObject_VAR_HEAD

Typedefs: unaryfunc, binaryfunc, ternaryfunc, inquiry, coercion, intargfunc, intintargfunc, intobjargproc, intintobjargproc, objobjargproc, getreadbufferproc, getwritebufferproc, getsegcountproc, destructor, printfunc, getattrfunc, getattrofunc, setattrfunc, setattrofunc, cmpfunc, reprfunc, hashfunc

PyNumberMethods

PySequenceMethods

PyMappingMethods

PyBufferProcs

PyTypeObject

DL_IMPORT

PyType_Type

Py*_Check

Py_None, _Py_NoneStruct


guido@python.org