summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-05-16 19:37:25 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-05-16 19:37:25 (GMT)
commite8e14591ebb729b4fa19626ce245fa0811cf6f32 (patch)
tree6448a655b30bd5f6d1f23137ebb5f8183547f109 /Lib/importlib
parente914123d1f07159f32bf4330556397ce4d590189 (diff)
downloadcpython-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/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py3
1 files changed, 2 insertions, 1 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__'