mirror of
https://github.com/python/cpython.git
synced 2025-09-06 17:02:26 +00:00
Issue #15471: Don't use mutable object as default values for the
parameters of importlib.__import__().
This commit is contained in:
parent
638de338e6
commit
cb4996afe4
6 changed files with 81 additions and 74 deletions
|
@ -195,7 +195,7 @@ builtin___import__(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(import_doc,
|
||||
"__import__(name, globals={}, locals={}, fromlist=[], level=0) -> module\n\
|
||||
"__import__(name, globals=None, locals=None, fromlist=(), level=0) -> module\n\
|
||||
\n\
|
||||
Import a module. Because this function is meant for use by the Python\n\
|
||||
interpreter and not for general use it is better to use\n\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue