diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-16 14:37:25 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-16 14:37:25 -0500 |
commit | df197a8dcb7f4aba4ba0e6b28f910cb28088549e (patch) | |
tree | 6d8bf0825d320161ad9ac61eb8c52d2d683ec79d /Lib/importlib | |
parent | 0b24c5b9c125ebb4f9c460cb362bfcdc6f69206f (diff) | |
download | cpython-df197a8dcb7f4aba4ba0e6b28f910cb28088549e.tar.gz |
rather than passing locals to the class body, just execute the class body in the proper environment
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index e791983f9d..857f308f86 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -391,12 +391,13 @@ def _call_with_frames_removed(f, *args, **kwds): # Python 3.4a1 3260 (add LOAD_CLASSDEREF; allow locals of class to override # free vars) # Python 3.4a1 3270 (various tweaks to the __class_ closure) +# Python 3.4a1 3280 (remove implicit class argument) # # MAGIC must change whenever the bytecode emitted by the compiler may no # longer be understood by older implementations of the eval loop (usually # due to the addition of new opcodes). -_MAGIC_BYTES = (3270).to_bytes(2, 'little') + b'\r\n' +_MAGIC_BYTES = (3280).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(_MAGIC_BYTES, 'little') _PYCACHE = '__pycache__' |