From 4f4c9b42ba20c857e23136431921433896532c95 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 15 Feb 1995 15:52:13 +0000 Subject: make __import__ 4-args --- Doc/lib/libimp.tex | 2 +- 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 -- cgit v0.12