summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-08-10 22:55:08 (GMT)
committerBrett Cannon <brett@python.org>2012-08-10 22:55:08 (GMT)
commit522267e7845becb76e0e1cbaa875ad0da9fd58cc (patch)
tree31e81dc3f2fddd48e7263211cf2db11669f24ed0 /Doc/whatsnew
parentf410ce8c0989ef14f0f935e256d82e96f5e0602b (diff)
downloadcpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.zip
cpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.tar.gz
cpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.tar.bz2
Issue #15610: The PyImport_ImportModuleEx macro now calls
PyImport_ImportModuleLevel() with a 'level' of 0 instead of -1 as the latter is no longer a valid value. Also added a versionchanged note for PyImport_ImportModuleLevel() just in case people don't make the connection between changes to __import__() and this C function.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 858fce8..a64424d 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1880,6 +1880,11 @@ Porting C code
* :c:func:`PyImport_GetMagicNumber` now returns -1 upon failure.
+* As a negative value for the **level** argument to :func:`__import__` is no
+ longer valid, the same now holds for :c:func:`PyImport_ImportModuleLevel`.
+ This also means that the value of **level** used by
+ :c:func:`PyImport_ImportModuleEx` is now 0 instead of -1.
+
Building C extensions
---------------------