summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-09 08:30:57 (GMT)
committerGitHub <noreply@github.com>2023-06-09 08:30:57 (GMT)
commit3e525d22128cf040b3fd164f52cc6ae20ca58455 (patch)
tree2f13c7b5eaf259a395c3600e2b8a920972c9c2d8 /Doc
parenta5f23d411062f9f29f8a7d7ddefe60d5d8e17d2e (diff)
downloadcpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.zip
cpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.tar.gz
cpython-3e525d22128cf040b3fd164f52cc6ae20ca58455.tar.bz2
gh-105396: Deprecate PyImport_ImportModuleNoBlock() function (#105397)
Deprecate the PyImport_ImportModuleNoBlock() function which is just an alias to PyImport_ImportModule() since Python 3.3.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/import.rst3
-rw-r--r--Doc/whatsnew/3.13.rst5
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 79843ba..6db2023 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -38,6 +38,9 @@ Importing Modules
to per-module locks for most purposes, so this function's special
behaviour isn't needed anymore.
+ .. deprecated-removed:: 3.13 3.15
+ Use :c:func:`PyImport_ImportModule` instead.
+
.. c:function:: PyObject* PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst
index 502cafd..4849ed7 100644
--- a/Doc/whatsnew/3.13.rst
+++ b/Doc/whatsnew/3.13.rst
@@ -407,6 +407,11 @@ Deprecated
(Contributed by Victor Stinner in :gh:`105145`.)
+* Deprecate the :c:func:`PyImport_ImportModuleNoBlock` function which is just
+ an alias to :c:func:`PyImport_ImportModule` since Python 3.3.
+ Scheduled for removal in Python 3.15.
+ (Contributed by Victor Stinner in :gh:`105396`.)
+
Removed
-------