◐ Shell
reader mode source ↗
Python logo

Table of Contents

  • Initialization, Finalization, and Threads
    • Before Python Initialization
    • Global configuration variables
    • Initializing and finalizing the interpreter
    • Process-wide parameters
    • Thread State and the Global Interpreter Lock
      • Releasing the GIL from extension code
      • Non-Python created threads
      • Cautions about fork()
      • Cautions regarding runtime finalization
      • High-level API
      • Low-level API
    • Sub-interpreter support
      • A Per-Interpreter GIL
      • Bugs and caveats
    • Asynchronous Notifications
    • Profiling and Tracing
    • Reference tracing
    • Advanced Debugger Support
    • Thread Local Storage Support
      • Thread Specific Storage (TSS) API
        • Dynamic Allocation
        • Methods
      • Thread Local Storage (TLS) API
    • Synchronization Primitives
      • Python Critical Section API
      • Legacy Locking APIs
    • Operating System Thread APIs

Previous topic

DateTime Objects

Next topic

Python Initialization Configuration

This page

  • Report a bug
  • Show source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.13.14 Documentation »
  • Python/C API Reference Manual »
  • Initialization, Finalization, and Threads
  • |
  • |

Table of Contents

  • Initialization, Finalization, and Threads
    • Before Python Initialization
    • Global configuration variables
    • Initializing and finalizing the interpreter
    • Process-wide parameters
    • Thread State and the Global Interpreter Lock
      • Releasing the GIL from extension code
      • Non-Python created threads
      • Cautions about fork()
      • Cautions regarding runtime finalization
      • High-level API
      • Low-level API
    • Sub-interpreter support
      • A Per-Interpreter GIL
      • Bugs and caveats
    • Asynchronous Notifications
    • Profiling and Tracing
    • Reference tracing
    • Advanced Debugger Support
    • Thread Local Storage Support
      • Thread Specific Storage (TSS) API
        • Dynamic Allocation
        • Methods
      • Thread Local Storage (TLS) API
    • Synchronization Primitives
      • Python Critical Section API
      • Legacy Locking APIs
    • Operating System Thread APIs

Previous topic

DateTime Objects

Next topic

Python Initialization Configuration

This page

  • Report a bug
  • Show source
«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python logo
  • Python »
  • 3.13.14 Documentation »
  • Python/C API Reference Manual »
  • Initialization, Finalization, and Threads
  • |
  • |
© Copyright 2001-2026, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Jun 16, 2026 (10:18 UTC). Found a bug?
Created using Sphinx 8.2.3.