[Python-checkins] cpython: Add a versionchanged mention to __import__ in regards to negative level values.

brett.cannon python-checkins at python.org
Tue Jul 31 00:35:24 CEST 2012


http://hg.python.org/cpython/rev/231d98a38eec
changeset:   78339:231d98a38eec
user:        Brett Cannon <brett at python.org>
date:        Mon Jul 30 18:35:17 2012 -0400
summary:
  Add a versionchanged mention to __import__ in regards to negative level values.

files:
  Doc/library/functions.rst |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1506,6 +1506,9 @@
    If you simply want to import a module (potentially within a package) by name,
    use :func:`importlib.import_module`.
 
+   .. versionchanged:: 3.3
+      Negative values for 'level' are no longer supported.
+
 
 .. rubric:: Footnotes
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list