summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/memory.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-05-12 21:59:25 (GMT)
committerGitHub <noreply@github.com>2021-05-12 21:59:25 (GMT)
commit6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d (patch)
tree096a9091641c61c9c45ce91ce2daa0c7eff8c121 /Doc/c-api/memory.rst
parent504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e (diff)
downloadcpython-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.rst2
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)