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
    • Base object types and macros
    • Implementing functions and methods
    • Accessing attributes of extension types
  • Type Objects
    • Quick Reference
      • “tp slots”
      • sub-slots
      • slot typedefs
    • PyTypeObject Definition
    • PyObject Slots
    • PyVarObject Slots
    • PyTypeObject Slots
    • Heap Types
  • Number Object Structures
  • Mapping Object Structures
  • Sequence Object Structures
  • Buffer Object Structures
  • Async Object Structures
  • Slot Type typedefs
  • Examples
  • Supporting Cyclic Garbage Collection

Related Topics

  • Documentation overview
    • Python/C API Reference Manual
      • Previous: Memory Management
      • Next: Allocating Objects on the Heap

This Page

  • Report a Bug
  • Show Source
©2001-2020, Python Software Foundation. | Powered by Sphinx 1.8.5 & Alabaster 0.7.8 | Page source