Python/C API reference manual — Python 3.16.0a0 documentation

docs.python.org

Tin mới

Embedding Python in Another Application

Python Module Index

3.16.0a0 Documentation

Extending and Embedding the Python Interpreter

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

Language version compatibility

C API and ABI Stability

The Very High Level Layer

Reference Counting

Exception Handling

Defining extension modules

Convenience macros

Operating System Utilities

Data marshalling support

Parsing arguments and building values

String conversion and formatting

Codec registry and support functions

Support for Perf Maps

Abstract Objects Layer

Concrete Objects Layer

Interpreter initialization and finalization

Thread states and the global interpreter lock

Synchronization primitives

Thread-local storage support

Multiple interpreters in a Python process

Profiling and tracing

Python Initialization Configuration

Raw Memory Interface

Object Implementation Support

Allocating objects on the heap

Common Object Structures

Type Object Structures

Supporting Cyclic Garbage Collection

API and ABI Versioning

Generating Execution Events

⌂doc
1/1