diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-05-16 19:37:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-05-16 19:37:25 (GMT) |
commit | e8e14591ebb729b4fa19626ce245fa0811cf6f32 (patch) | |
tree | 6448a655b30bd5f6d1f23137ebb5f8183547f109 /Lib | |
parent | e914123d1f07159f32bf4330556397ce4d590189 (diff) | |
download | cpython-e8e14591ebb729b4fa19626ce245fa0811cf6f32.zip cpython-e8e14591ebb729b4fa19626ce245fa0811cf6f32.tar.gz cpython-e8e14591ebb729b4fa19626ce245fa0811cf6f32.tar.bz2 |
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 e791983..857f308 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 4657b86..78d1229 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) |