10. Defining New Object Types
Keywords: api

#
10. Defining New Object Types

PyObject* `_PyObject_New` (PyTypeObject *type)
  Return value: New reference.

PyVarObject* `_PyObject_NewVar` (PyTypeObject *type, int size)

void `_PyObject_Del` (PyObject *op)

PyObject* `PyObject_Init` (PyObject *op, PyTypeObject *type)
  Return value: Borrowed reference.

PyVarObject* `PyObject_InitVar` (PyVarObject *op, PyTypeObject *type, int size)

TYPE* `PyObject_New` (TYPE, PyTypeObject *type)

TYPE* `PyObject_NewVar` (TYPE, PyTypeObject *type, int size)

void `PyObject_Del` (PyObject *op)

TYPE* `PyObject_NEW` (TYPE, PyTypeObject *type)

TYPE* `PyObject_NEW_VAR` (TYPE, PyTypeObject *type, int size)

void `PyObject_DEL` (PyObject *op)

Py_InitModule (!!!)

PyArg_ParseTupleAndKeywords, PyArg_ParseTuple, PyArg_Parse

Py_BuildValue

DL_IMPORT

Py*_Check

_Py_NoneStruct

Subsections

- 10.1 Common Object Structures
- 10.2 Mapping Object Structures
- 10.3 Number Object Structures
- 10.4 Sequence Object Structures
- 10.5 Buffer Object Structures