diff options
author | Brett Cannon <brett@python.org> | 2012-08-06 20:34:44 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-08-06 20:34:44 (GMT) |
commit | cb4996afe4952e219d13bbb5a84162ab1aaa6887 (patch) | |
tree | c4d7cd79f10e23fc3c369d6d5636e0ed24182acb /Doc | |
parent | 638de338e66b6e84a98c7bd8f6f6959575b53c51 (diff) | |
download | cpython-cb4996afe4952e219d13bbb5a84162ab1aaa6887.zip cpython-cb4996afe4952e219d13bbb5a84162ab1aaa6887.tar.gz cpython-cb4996afe4952e219d13bbb5a84162ab1aaa6887.tar.bz2 |
Issue #15471: Don't use mutable object as default values for the
parameters of importlib.__import__().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 2 | ||||
-rw-r--r-- | Doc/library/importlib.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index e7ee51b..212b4e1 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1443,7 +1443,7 @@ are always available. They are listed here in alphabetical order. True -.. function:: __import__(name, globals={}, locals={}, fromlist=[], level=0) +.. function:: __import__(name, globals=None, locals=None, fromlist=(), level=0) .. index:: statement: import diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index df05ec4..2056b36 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -63,7 +63,7 @@ Details on custom importers can be found in :pep:`302`. Functions --------- -.. function:: __import__(name, globals={}, locals={}, fromlist=list(), level=0) +.. function:: __import__(name, globals=None, locals=None, fromlist=(), level=0) An implementation of the built-in :func:`__import__` function. |