René's URL Explorer Experiment


Title: Interpreter initialization and finalization — Python 3.16.0a2 documentation

Open Graph Title: Interpreter initialization and finalization

Description: See Python Initialization Configuration for details on how to configure the interpreter prior to initialization. Before Python initialization: In an application embedding Python, the Py_Initialize(...

Open Graph Description: See Python Initialization Configuration for details on how to configure the interpreter prior to initialization. Before Python initialization: In an application embedding Python, the Py_Initialize(...

Opengraph URL: https://docs.python.org/3/c-api/interp-lifecycle.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.16/_images/social_previews/summary_c-api_interp-lifecycle_9a381aa8.png
og:image:altSee Python Initialization Configuration for details on how to configure the interpreter prior to initialization. Before Python initialization: In an application embedding Python, the Py_Initialize(...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/dev/contents.html
Interpreter initialization and finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html
Before Python initializationhttps://docs.python.org/dev/c-api/interp-lifecycle.html#before-python-initialization
Initializing and finalizing the interpreterhttps://docs.python.org/dev/c-api/interp-lifecycle.html#initializing-and-finalizing-the-interpreter
Cautions regarding interpreter finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html#cautions-regarding-interpreter-finalization
Interpreter viewshttps://docs.python.org/dev/c-api/interp-lifecycle.html#interpreter-views
Process-wide parametershttps://docs.python.org/dev/c-api/interp-lifecycle.html#process-wide-parameters
DateTime Objectshttps://docs.python.org/dev/c-api/datetime.html
Thread states and the global interpreter lockhttps://docs.python.org/dev/c-api/threads.html
Report a bughttps://docs.python.org/dev/bugs.html
Improve this pagehttps://docs.python.org/dev/improve-page-nojs.html
Show source https://github.com/python/cpython/blob/main/Doc/c-api/interp-lifecycle.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/c-api/threads.html
previoushttps://docs.python.org/dev/c-api/datetime.html
Pythonhttps://www.python.org/
3.16.0a2 documentationhttps://docs.python.org/dev/index.html
Python/C API reference manualhttps://docs.python.org/dev/c-api/index.html
Interpreter initialization and finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html
https://docs.python.org/dev/c-api/interp-lifecycle.html#interpreter-initialization-and-finalization
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
https://docs.python.org/dev/c-api/interp-lifecycle.html#before-python-initialization
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_InitializeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeEx
Py_InitializeFromConfig()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeFromConfig
Py_BytesMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_BytesMain
Py_Main()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Main
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
PyImport_AppendInittab()https://docs.python.org/dev/c-api/import.html#c.PyImport_AppendInittab
PyImport_ExtendInittab()https://docs.python.org/dev/c-api/import.html#c.PyImport_ExtendInittab
PyMem_SetAllocator()https://docs.python.org/dev/c-api/memory.html#c.PyMem_SetAllocator
PyMem_SetupDebugHooks()https://docs.python.org/dev/c-api/memory.html#c.PyMem_SetupDebugHooks
PyObject_SetArenaAllocator()https://docs.python.org/dev/c-api/memory.html#c.PyObject_SetArenaAllocator
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
Py_IsInitialized()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_IsInitialized
PyMem_GetAllocator()https://docs.python.org/dev/c-api/memory.html#c.PyMem_GetAllocator
PyObject_GetArenaAllocator()https://docs.python.org/dev/c-api/memory.html#c.PyObject_GetArenaAllocator
Py_GetBuildInfo()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetBuildInfo
Py_GetCompiler()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetCompiler
Py_GetCopyright()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetCopyright
Py_GetPlatform()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetPlatform
Py_GetVersion()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetVersion
Py_DecodeLocale()https://docs.python.org/dev/c-api/sys.html#c.Py_DecodeLocale
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
PyMem_RawMalloc()https://docs.python.org/dev/c-api/memory.html#c.PyMem_RawMalloc
PyMem_RawRealloc()https://docs.python.org/dev/c-api/memory.html#c.PyMem_RawRealloc
PyMem_RawCalloc()https://docs.python.org/dev/c-api/memory.html#c.PyMem_RawCalloc
PyMem_RawFree()https://docs.python.org/dev/c-api/memory.html#c.PyMem_RawFree
PyMutex_Lock()https://docs.python.org/dev/c-api/synchronization.html#c.PyMutex_Lock
PyMutex_Unlock()https://docs.python.org/dev/c-api/synchronization.html#c.PyMutex_Unlock
Py_EncodeLocale()https://docs.python.org/dev/c-api/sys.html#c.Py_EncodeLocale
Py_RunMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
https://docs.python.org/dev/c-api/interp-lifecycle.html#initializing-and-finalizing-the-interpreter
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Before Python Initializationhttps://docs.python.org/dev/c-api/interp-lifecycle.html#pre-init-safe
builtinshttps://docs.python.org/dev/library/builtins.html#module-builtins
__main__https://docs.python.org/dev/library/__main__.html#module-__main__
syshttps://docs.python.org/dev/library/sys.html#module-sys
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
Py_FinalizeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
Py_InitializeFromConfig()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeFromConfig
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeEx
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_InitializeFromConfig()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeFromConfig
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
PyStatushttps://docs.python.org/dev/c-api/init_config.html#c.PyStatus
PyConfighttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeFromConfig
Initialization with PyConfighttps://docs.python.org/dev/c-api/init_config.html#init-from-config
Python Initialization Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
Py_RunMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_IsInitialized
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Py_FinalizeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
sitehttps://docs.python.org/dev/library/site.html#module-site
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_IsFinalizing
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
shutting downhttps://docs.python.org/dev/glossary.html#term-interpreter-shutdown
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_NewInterpreter()https://docs.python.org/dev/c-api/subinterpreters.html#c.Py_NewInterpreter
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_RunMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
__del__()https://docs.python.org/dev/reference/datamodel.html#object.__del__
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_FinalizeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
atexithttps://docs.python.org/dev/library/atexit.html#module-atexit
auditing eventhttps://docs.python.org/dev/library/sys.html#auditing
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Finalize
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Py_FinalizeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_BytesMain
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Py_Main()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Main
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Main
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Command linehttps://docs.python.org/dev/using/cmdline.html#using-on-cmdline
Py_DecodeLocale()https://docs.python.org/dev/c-api/sys.html#c.Py_DecodeLocale
Py_RunMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
runtime configurationhttps://docs.python.org/dev/c-api/init_config.html#init-config
Py_Initialize()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Initialize
Py_InitializeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeEx
Py_InitializeFromConfig()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_InitializeFromConfig
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FrozenMain
Tools/freezehttps://github.com/python/cpython/tree/main/Tools/freeze
PyImport_FrozenModuleshttps://docs.python.org/dev/c-api/import.html#c.PyImport_FrozenModules
PyConfig_SetBytesArgv()https://docs.python.org/dev/c-api/init_config.html#c.PyConfig_SetBytesArgv
Py_Main()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_Main
PyConfig.parse_argvhttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.parse_argv
sys.argvhttps://docs.python.org/dev/library/sys.html#sys.argv
Python Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-python-config
PYTHONPATHhttps://docs.python.org/dev/using/cmdline.html#envvar-PYTHONPATH
PyConfig.pathconfig_warningshttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.pathconfig_warnings
PYTHONINSPECThttps://docs.python.org/dev/using/cmdline.html#envvar-PYTHONINSPECT
-ihttps://docs.python.org/dev/using/cmdline.html#cmdoption-i
Py_FinalizeEx()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_FinalizeEx
SystemExithttps://docs.python.org/dev/builtins/exceptions.html#SystemExit
Py_ExitStatusException()https://docs.python.org/dev/c-api/init_config.html#c.Py_ExitStatusException
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
PyConfig.run_commandhttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.run_command
PyConfig.run_filenamehttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.run_filename
PyConfig.run_modulehttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.run_module
PyConfig.inspecthttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.inspect
SystemExithttps://docs.python.org/dev/builtins/exceptions.html#SystemExit
PyConfig.inspecthttps://docs.python.org/dev/c-api/init_config.html#c.PyConfig.inspect
-ihttps://docs.python.org/dev/using/cmdline.html#cmdoption-i
SystemExithttps://docs.python.org/dev/builtins/exceptions.html#SystemExit
Python Configurationhttps://docs.python.org/dev/c-api/init_config.html#init-python-config
Py_RunMain()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_RunMain
PyInterpreterStatehttps://docs.python.org/dev/c-api/subinterpreters.html#c.PyInterpreterState
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyUnstable_AtExit
Unstable APIhttps://docs.python.org/dev/c-api/stable.html#unstable-c-api
atexithttps://docs.python.org/dev/library/atexit.html#module-atexit
Py_AtExit()https://docs.python.org/dev/c-api/sys.html#c.Py_AtExit
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
https://docs.python.org/dev/c-api/interp-lifecycle.html#cautions-regarding-interpreter-finalization
interpreter shutdownhttps://docs.python.org/dev/glossary.html#term-interpreter-shutdown
KeyboardInterrupthttps://docs.python.org/dev/builtins/exceptions.html#KeyboardInterrupt
atexithttps://docs.python.org/dev/library/atexit.html#module-atexit
Py_IsFinalizing()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_IsFinalizing
sys.is_finalizing()https://docs.python.org/dev/library/sys.html#sys.is_finalizing
attachhttps://docs.python.org/dev/glossary.html#term-attached-thread-state
PyThreadState_Ensure()https://docs.python.org/dev/c-api/threads.html#c.PyThreadState_Ensure
Py_END_ALLOW_THREADShttps://docs.python.org/dev/c-api/threads.html#c.Py_END_ALLOW_THREADS
PyThread_exit_thread()https://docs.python.org/dev/c-api/threads.html#c.PyThread_exit_thread
PEP 788https://peps.python.org/pep-0788/
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterGuard_Close()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_Close
strong referencehttps://docs.python.org/dev/glossary.html#term-strong-reference
Py_EndInterpreter()https://docs.python.org/dev/c-api/subinterpreters.html#c.Py_EndInterpreter
PyInterpreterGuardhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_FromCurrent
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterGuard_Close()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_Close
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
PyInterpreterGuardhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard
PyInterpreterViewhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_FromView
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterGuard_Close()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_Close
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
PyInterpreterGuardhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_Close
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyThreadState_Ensure()https://docs.python.org/dev/c-api/threads.html#c.PyThreadState_Ensure
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
https://docs.python.org/dev/c-api/interp-lifecycle.html#interpreter-views
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterViewhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView_FromCurrent
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterGuard_FromView()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard_FromView
PyThreadState_EnsureFromView()https://docs.python.org/dev/c-api/threads.html#c.PyThreadState_EnsureFromView
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
PyInterpreterViewhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView_Close
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
PyInterpreterViewhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView_FromMain
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
PyInterpreterState_Main()https://docs.python.org/dev/c-api/subinterpreters.html#c.PyInterpreterState_Main
PyInterpreterGuardhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterGuard
PyInterpreterViewhttps://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView
PyInterpreterView_FromCurrent()https://docs.python.org/dev/c-api/interp-lifecycle.html#c.PyInterpreterView_FromCurrent
attached thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
https://docs.python.org/dev/c-api/interp-lifecycle.html#process-wide-parameters
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetVersion
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
sys.versionhttps://docs.python.org/dev/library/sys.html#sys.version
Py_Versionhttps://docs.python.org/dev/c-api/apiabiversion.html#c.Py_Version
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetPlatform
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetCopyright
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetCompiler
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
https://docs.python.org/dev/c-api/interp-lifecycle.html#c.Py_GetBuildInfo
Stable ABIhttps://docs.python.org/dev/c-api/stable.html#stable
Table of Contentshttps://docs.python.org/dev/contents.html
Interpreter initialization and finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html
Before Python initializationhttps://docs.python.org/dev/c-api/interp-lifecycle.html#before-python-initialization
Initializing and finalizing the interpreterhttps://docs.python.org/dev/c-api/interp-lifecycle.html#initializing-and-finalizing-the-interpreter
Cautions regarding interpreter finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html#cautions-regarding-interpreter-finalization
Interpreter viewshttps://docs.python.org/dev/c-api/interp-lifecycle.html#interpreter-views
Process-wide parametershttps://docs.python.org/dev/c-api/interp-lifecycle.html#process-wide-parameters
DateTime Objectshttps://docs.python.org/dev/c-api/datetime.html
Thread states and the global interpreter lockhttps://docs.python.org/dev/c-api/threads.html
Report a bughttps://docs.python.org/dev/bugs.html
Improve this pagehttps://docs.python.org/dev/improve-page-nojs.html
Show source https://github.com/python/cpython/blob/main/Doc/c-api/interp-lifecycle.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/c-api/threads.html
previoushttps://docs.python.org/dev/c-api/datetime.html
Pythonhttps://www.python.org/
3.16.0a2 documentationhttps://docs.python.org/dev/index.html
Python/C API reference manualhttps://docs.python.org/dev/c-api/index.html
Interpreter initialization and finalizationhttps://docs.python.org/dev/c-api/interp-lifecycle.html
Copyrighthttps://docs.python.org/dev/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.