diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-04-30 13:41:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-04-30 13:41:40 (GMT) |
commit | 3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5 (patch) | |
tree | 7f98ecba2e560776b91856eb74487c26c73d5d0d /Lib/importlib | |
parent | f256f5f3ebf6574a2708cfea36d857846893e71f (diff) | |
download | cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.zip cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.tar.gz cpython-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.tar.bz2 |
check local class namespace before reaching for cells (closes #17853)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 77c14bc..1a046c5 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -388,12 +388,14 @@ def _call_with_frames_removed(f, *args, **kwds): # Python 3.3a4 3230 (revert changes to implicit __class__ closure) # Python 3.4a1 3250 (evaluate positional default arguments before # keyword-only defaults) +# Python 3.4a1 3260 (add LOAD_CLASSDEREF; allow locals of class to override +# free vars) # # 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 = (3250).to_bytes(2, 'little') + b'\r\n' +_MAGIC_BYTES = (3260).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(_MAGIC_BYTES, 'little') _PYCACHE = '__pycache__' |