diff options
| author | Benjamin Peterson <benjamin@python.org> | 2013-04-30 09:41:40 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2013-04-30 09:41:40 -0400 |
| commit | 3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5 (patch) | |
| tree | 7f98ecba2e560776b91856eb74487c26c73d5d0d /Lib/importlib | |
| parent | f256f5f3ebf6574a2708cfea36d857846893e71f (diff) | |
| download | cpython-git-3b0431dc6019d2f9ffa9adcaa78ddd3f7b76a2f5.tar.gz | |
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 77c14bc725..1a046c5957 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__' |
