diff options
author | Victor Stinner <vstinner@python.org> | 2021-05-12 21:59:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 21:59:25 (GMT) |
commit | 6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d (patch) | |
tree | 096a9091641c61c9c45ce91ce2daa0c7eff8c121 /Doc/c-api/memory.rst | |
parent | 504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e (diff) | |
download | cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.zip cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.gz cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.bz2 |
bpo-44113: Deprecate old functions to config Python init (GH-26060)
Deprecate the following functions to configure the Python
initialization:
* PySys_AddWarnOption()
* PySys_AddWarnOptionUnicode()
* PySys_AddXOption()
* PySys_HasWarnOptions()
* Py_SetPath()
* Py_SetProgramName()
* Py_SetPythonHome()
* Py_SetStandardStreamEncoding()
* _Py_SetProgramFullPath()
Use the new PyConfig API of the Python Initialization Configuration
instead (PEP 587).
Diffstat (limited to 'Doc/c-api/memory.rst')
-rw-r--r-- | Doc/c-api/memory.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/memory.rst b/Doc/c-api/memory.rst index efddc6f..3cc9dff 100644 --- a/Doc/c-api/memory.rst +++ b/Doc/c-api/memory.rst @@ -476,6 +476,8 @@ Customize Memory Allocators the :c:func:`PyMem_SetupDebugHooks` function must be called to reinstall the debug hooks on top on the new allocator. + See also :c:member:`PyPreConfig.allocator` and :ref:`Preinitialize Python + with PyPreConfig <c-preinit>`. .. c:function:: void PyMem_SetupDebugHooks(void) |