Python/C API Reference Manual¶
This manual documents the API used by C and C++ programmers who want to write extension modules or embed Python. It is a companion to Extending and Embedding the Python Interpreter, which describes the general principles of extension writing but does not document the API functions in detail.
- Introduction
- C API Stability
- The Very High Level Layer
- Reference Counting
- Exception Handling
- Utilities
- Abstract Objects Layer
- Concrete Objects Layer
- Type Objects
- The
None
Object - Integer Objects
- Boolean Objects
- Floating-Point Objects
- Complex Number Objects
- Bytes Objects
- Byte Array Objects
- Unicode Objects and Codecs
- Tuple Objects
- Struct Sequence Objects
- List Objects
- Dictionary Objects
- Set Objects
- Function Objects
- Instance Method Objects
- Method Objects
- Cell Objects
- Code Objects
- Extra information
- File Objects
- Module Objects
- Iterator Objects
- Descriptor Objects
- Slice Objects
- MemoryView objects
- Weak Reference Objects
- Capsules
- Frame Objects
- Generator Objects
- Coroutine Objects
- Context Variables Objects
- DateTime Objects
- Objects for Type Hinting
- Initialization, Finalization, and Threads
- Python Initialization Configuration
- Memory Management
- Object Implementation Support
- API and ABI Versioning
- Monitoring C API
- Generating Execution Events