Kaydet (Commit) 4f4c9b42 authored tarafından Guido van Rossum's avatar Guido van Rossum

make __import__ 4-args

üst 194e57ca
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment