About 50 results
Open links in new tab
  1. Python/C API Reference Manual — Python 3.14.3 documentation

    3 days ago · 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 …

  2. 1. Extending Python with C or C++ — Python 3.14.3 documentation

    3 days ago · To support extensions, the Python API (Application Programmers Interface) defines a set of functions, macros and variables that provide access to most aspects of the Python run-time system. …

  3. Introduction — Python 3.14.3 documentation

    4 days ago · The API is equally usable from C++, but for brevity it is generally referred to as the Python/C API. There are two fundamentally different reasons for using the Python/C API. The first …

  4. Module Objects — Python 3.14.3 documentation

    2 days ago · Modules defined using the C API typically use a module definition, PyModuleDef – a statically allocated, constant “description” of how a module should be created.

  5. C API Stability — Python 3.14.3 documentation

    2 days ago · Unless documented otherwise, Python’s C API is covered by the Backwards Compatibility Policy, PEP 387. Most changes to it are source-compatible (typically by only adding new API).

  6. Extending and Embedding the Python Interpreter

    4 days ago · This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and …

  7. C API Extension Support for Free Threading - Python

    4 days ago · Starting with the 3.13 release, CPython has support for running with the global interpreter lock (GIL) disabled in a configuration called free threading. This document describes how to adapt C …

  8. 2. Defining Extension Types: Tutorial — Python 3.14.3 documentation

    4 days ago · Python allows the writer of a C extension module to define new types that can be manipulated from Python code, much like the built-in str and list types. The code for all extension …

  9. The Very High Level Layer — Python 3.14.3 documentation

    2 days ago · The functions in this chapter will let you execute Python source code given in a file or a buffer, but they will not let you interact in a more detailed way with the interpreter.

  10. Initialization, Finalization, and Threads — Python 3.14.3 documentation

    If you need to call Python code from these threads (often this will be part of a callback API provided by the aforementioned third-party library), you must first register these threads with the interpreter by …