Tin mới
Initialization, Finalization, and Threads
PYMEM_ALLOCATOR_DEFAULT (1): default memory allocators.
configured using --without-pymalloc
PYMEM_ALLOCATOR_NOT_SET (0): don’t change memory allocators (use defaults).
Initialized the from PYTHONLEGACYWINDOWSFSENCODING environment variable value.
Preinitialize Python with PyPreConfig¶
Set the Python memory allocators (PyPreConfig.allocator)
Preinitialize Python with PyPreConfig¶
Set the Python memory allocators (PyPreConfig.allocator)
If non-zero, emit a EncodingWarning warning when io.TextIOWrapper uses its default encoding. See Opt-in EncodingWarning for details.
If non-zero, call faulthandler.enable() at startup.
On macOS, Android and VxWorks: use "utf-8" by default.
readline: GNU readline support for Python. (Unix)
Python REPL doesn’t import readline nor enable default readline configuration on interactive prompts.
site: Module responsible for site-specific configuration.
If equal to zero, disable the import of the module site and the site-dependent manipulations of sys.path that it entails.
Set by -X tracemalloc=N command line option and by the PYTHONTRACEMALLOC environment variable.
warnings: Issue warning messages and control their disposition.
Options of the warnings module to build warnings filters, lowest to highest priority: sys.warnoptions.
The caller is responsible to handle exceptions (error or exit) using PyStatus_Exception() and Py_ExitStatusException().
PyConfig contains multiple fields for the path configuration: