summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libimp.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-15 15:52:13 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-15 15:52:13 (GMT)
commit4f4c9b42ba20c857e23136431921433896532c95 (patch)
treefd7d836435143b12280576d41d6b5835d9e97125 /Doc/lib/libimp.tex
parent194e57caa6675f0839819477294de7690923c771 (diff)
downloadcpython-4f4c9b42ba20c857e23136431921433896532c95.zip
cpython-4f4c9b42ba20c857e23136431921433896532c95.tar.gz
cpython-4f4c9b42ba20c857e23136431921433896532c95.tar.bz2
make __import__ 4-args
Diffstat (limited to 'Doc/lib/libimp.tex')
-rw-r--r--Doc/lib/libimp.tex2
1 files changed, 1 insertions, 1 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