summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-04 18:43:52 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-04 18:43:52 (GMT)
commit74a69fa662fb844ad3c60eb27b09e5fa1e577305 (patch)
tree251ba06cc429ab62a204e28bece4f382e179c7bf /Python/import.c
parentef0e6c3b0485e83444b15c07f9cb1d905203791a (diff)
downloadcpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.zip
cpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.tar.gz
cpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.tar.bz2
Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but our bytecode is a bit simplified. Patch by Demur Rumed.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index a5277af..d6b19e8 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -101,12 +101,14 @@ typedef unsigned short mode_t;
introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE)
Python 3.2a0: 3160 (add SETUP_WITH)
tag: cpython-32
+ Python 3.2a1: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR)
+ tag: cpython-32
*/
/* If you change MAGIC, you must change TAG and you must insert the old value
into _PyMagicNumberTags below.
*/
-#define MAGIC (3160 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (3170 | ((long)'\r'<<16) | ((long)'\n'<<24))
#define TAG "cpython-32"
#define CACHEDIR "__pycache__"
/* Current magic word and string tag as globals. */