[Python-checkins] cpython: copy 2.7 magic numbers for historical interest

benjamin.peterson python-checkins at python.org
Fri Mar 22 05:04:57 CET 2013


http://hg.python.org/cpython/rev/a2128cb22372
changeset: 82876:a2128cb22372
user: Benjamin Peterson <benjamin at python.org>
date: Thu Mar 21 23:04:45 2013 -0500
summary:
 copy 2.7 magic numbers for historical interest
files:
 Lib/importlib/_bootstrap.py | 6 +
 Python/importlib.h | 7250 ++++++++++------------
 2 files changed, 3164 insertions(+), 4092 deletions(-)
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -351,6 +351,12 @@
 Python 2.5c2: 62131 (fix wrong code: for x, in ... in listcomp/genexp)
 Python 2.6a0: 62151 (peephole optimizations and STORE_MAP opcode)
 Python 2.6a1: 62161 (WITH_CLEANUP optimization)
+ Python 2.7a0: 62171 (optimize list comprehensions/change LIST_APPEND)
+ Python 2.7a0: 62181 (optimize conditional branches:
+ introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE)
+ Python 2.7a0 62191 (introduce SETUP_WITH)
+ Python 2.7a0 62201 (introduce BUILD_SET)
+ Python 2.7a0 62211 (introduce MAP_ADD and SET_ADD)
 Python 3000: 3000
 3010 (removed UNARY_CONVERT)
 3020 (added BUILD_SET)
diff --git a/Python/importlib.h b/Python/importlib.h
--- a/Python/importlib.h
+++ b/Python/importlib.h
[stripped]
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /