This document is for an old version of Python that is no longer supported. You should install the python3 and python3-doc packages and read the Python documentation for the Python3 version packaged in this release.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • Python 2.7.18 documentation »
  • Python/C API Reference Manual »
  • Object Implementation Support

Object Implementation Support¶

This chapter describes the functions, types, and macros used when defining new object types.

  • Allocating Objects on the Heap
  • Common Object Structures
    • METH_VARARGS
    • METH_KEYWORDS
    • METH_NOARGS
    • METH_O
    • METH_OLDARGS
    • METH_CLASS
    • METH_STATIC
    • METH_COEXIST
  • Type Objects
    • Py_TPFLAGS_HAVE_GETCHARBUFFER
    • Py_TPFLAGS_HAVE_SEQUENCE_IN
    • Py_TPFLAGS_GC
    • Py_TPFLAGS_HAVE_INPLACEOPS
    • Py_TPFLAGS_CHECKTYPES
    • Py_TPFLAGS_HAVE_RICHCOMPARE
    • Py_TPFLAGS_HAVE_WEAKREFS
    • Py_TPFLAGS_HAVE_ITER
    • Py_TPFLAGS_HAVE_CLASS
    • Py_TPFLAGS_HEAPTYPE
    • Py_TPFLAGS_BASETYPE
    • Py_TPFLAGS_READY
    • Py_TPFLAGS_READYING
    • Py_TPFLAGS_HAVE_GC
    • Py_TPFLAGS_DEFAULT
  • Number Object Structures
  • Mapping Object Structures
  • Sequence Object Structures
  • Buffer Object Structures
    • Py_TPFLAGS_HAVE_GETCHARBUFFER
  • Supporting Cyclic Garbage Collection

Previous topic

Memory Management

Next topic

Allocating Objects on the Heap

This Page

  • Show Source

Quick search

«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python »
  • Python 2.7.18 documentation »
  • Python/C API Reference Manual »
  • Object Implementation Support
© Copyright 1990-2022, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on September 12, 2022. Found a bug?
Created using Sphinx 5.3.0.