make __import__ 4-args

This commit is contained in:
Guido van Rossum 1995-02-15 15:52:13 +00:00
parent 194e57caa6
commit 4f4c9b42ba
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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