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 | |
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')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 3 | ||||
-rw-r--r-- | Lib/opcode.py | 1 |
2 files changed, 2 insertions, 2 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__' diff --git a/Lib/opcode.py b/Lib/opcode.py index 4657b86ef9..78d12294e3 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -84,7 +84,6 @@ def_op('BINARY_XOR', 65) def_op('BINARY_OR', 66) def_op('INPLACE_POWER', 67) def_op('GET_ITER', 68) -def_op('STORE_LOCALS', 69) def_op('PRINT_EXPR', 70) def_op('LOAD_BUILD_CLASS', 71) |