Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libimp.tex @ 2345:9552edb4eabf legacy-trunk
make __import__ 4-args
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 15 Feb 1995 15:52:13 +0000 |
| parents | 6c4905ffff01 |
| children | cdd3a721b40e |
line wrap: on
line diff
--- a/Doc/lib/libimp.tex Wed Feb 15 15:51:38 1995 +0000 +++ b/Doc/lib/libimp.tex Wed Feb 15 15:52:13 1995 +0000 @@ -135,7 +135,7 @@ 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
