summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-19 08:36:10 (GMT)
committerGitHub <noreply@github.com>2019-06-19 08:36:10 (GMT)
commit987a0dcfa1302df6c1ed8cf14762dc18628e3f33 (patch)
treee5067c951f469056947e4b2c3312503610424abc /Doc
parent7821b4c6d29933511d50bb42255e39790c6abf00 (diff)
downloadcpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.zip
cpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.tar.gz
cpython-987a0dcfa1302df6c1ed8cf14762dc18628e3f33.tar.bz2
bpo-36710: Remove PyImport_Cleanup() function (GH-14221)
* Rename PyImport_Cleanup() to _PyImport_Cleanup() and move it to the internal C API. Add 'tstate' parameters. * Remove documentation of _PyImport_Init(), PyImport_Cleanup(), _PyImport_Fini(). All three were documented as "For internal use only.".
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/import.rst15
-rw-r--r--Doc/whatsnew/3.9.rst3
2 files changed, 3 insertions, 15 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 86cc403..3bc5060 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -223,21 +223,6 @@ Importing Modules
Return a new reference to the finder object.
-.. c:function:: void _PyImport_Init()
-
- Initialize the import mechanism. For internal use only.
-
-
-.. c:function:: void PyImport_Cleanup()
-
- Empty the module table. For internal use only.
-
-
-.. c:function:: void _PyImport_Fini()
-
- Finalize the import mechanism. For internal use only.
-
-
.. c:function:: int PyImport_ImportFrozenModuleObject(PyObject *name)
Load a frozen module named *name*. Return ``1`` for success, ``0`` if the
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 446c8b9..24fbe18 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -122,6 +122,9 @@ Deprecated
Removed
=======
+* The C function ``PyImport_Cleanup()`` has been removed. It was documented as:
+ "Empty the module table. For internal use only."
+
* ``_dummy_thread`` and ``dummy_threading`` modules have been removed. These
modules were deprecated since Python 3.7 which requires threading support.
(Contributed by Victor Stinner in :issue:`37312`.)