Issue #15471: Don't use mutable object as default values for the

parameters of importlib.__import__().
This commit is contained in:
Brett Cannon 2012-08-06 16:34:44 -04:00
parent 638de338e6
commit cb4996afe4
6 changed files with 81 additions and 74 deletions

View file

@ -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.