diff options
author | Guido van Rossum <guido@python.org> | 1995-02-15 15:52:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-15 15:52:13 (GMT) |
commit | 4f4c9b42ba20c857e23136431921433896532c95 (patch) | |
tree | fd7d836435143b12280576d41d6b5835d9e97125 | |
parent | 194e57caa6675f0839819477294de7690923c771 (diff) | |
download | cpython-4f4c9b42ba20c857e23136431921433896532c95.zip cpython-4f4c9b42ba20c857e23136431921433896532c95.tar.gz cpython-4f4c9b42ba20c857e23136431921433896532c95.tar.bz2 |
make __import__ 4-args
-rw-r--r-- | Doc/lib/libimp.tex | 2 | ||||
-rw-r--r-- | Doc/libimp.tex | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libimp.tex b/Doc/lib/libimp.tex index 1ee7ced..1a313fa 100644 --- a/Doc/lib/libimp.tex +++ b/Doc/lib/libimp.tex @@ -135,7 +135,7 @@ The following function emulates the default import statement: import imp from sys import modules -def __import__(name): +def __import__(name, globals=None, locals=None, fromlist=None): # Fast path: let's see if it's already in sys.modules. # Two speed optimizations are worth mentioning: # - We use 'modules' instead of 'sys.modules'; this saves a diff --git a/Doc/libimp.tex b/Doc/libimp.tex index 1ee7ced..1a313fa 100644 --- a/Doc/libimp.tex +++ b/Doc/libimp.tex @@ -135,7 +135,7 @@ The following function emulates the default import statement: import imp from sys import modules -def __import__(name): +def __import__(name, globals=None, locals=None, fromlist=None): # Fast path: let's see if it's already in sys.modules. # Two speed optimizations are worth mentioning: # - We use 'modules' instead of 'sys.modules'; this saves a |