mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
rather than passing locals to the class body, just execute the class body in the proper environment
This commit is contained in:
parent
e914123d1f
commit
e8e14591eb
10 changed files with 3143 additions and 3175 deletions
|
@ -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__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue