diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-02-10 14:29:59 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-02-10 14:29:59 (GMT) |
commit | 1ef876cd28aa2f76edffb6e4d209c6a49b5705ef (patch) | |
tree | eeb6cbf3329f73d4ddce50aef3c912b9e4aef400 /Lib/importlib | |
parent | 34a2a87d17ff1730946adf86d23a4737271e53b3 (diff) | |
download | cpython-1ef876cd28aa2f76edffb6e4d209c6a49b5705ef.zip cpython-1ef876cd28aa2f76edffb6e4d209c6a49b5705ef.tar.gz cpython-1ef876cd28aa2f76edffb6e4d209c6a49b5705ef.tar.bz2 |
evaluate positional defaults before keyword-only defaults (closes #16967)
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 6b2221d..652d0fd 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -396,13 +396,15 @@ Known values: 3210 (added size modulo 2**32 to the pyc header) Python 3.3a1 3220 (changed PEP 380 implementation) Python 3.3a4 3230 (revert changes to implicit __class__ closure) + Python 3.4a1 3240 (evaluate positional default arguments before + keyword-only defaults) 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). """ -_RAW_MAGIC_NUMBER = 3230 | ord('\r') << 16 | ord('\n') << 24 +_RAW_MAGIC_NUMBER = 3240 | ord('\r') << 16 | ord('\n') << 24 _MAGIC_BYTES = bytes(_RAW_MAGIC_NUMBER >> n & 0xff for n in range(0, 25, 8)) _PYCACHE = '__pycache__' |