diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-25 13:13:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-25 13:13:44 (GMT) |
commit | 1880d8b8231d0085700d5d3c03ee9b16c619720d (patch) | |
tree | 5ee56e8c0e04567dd7fb793a5c510007f623e3f3 /Include/opcode.h | |
parent | 179bf213ea0432f2219c9b72ff4c4e18062fb588 (diff) | |
download | cpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.zip cpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.tar.gz cpython-1880d8b8231d0085700d5d3c03ee9b16c619720d.tar.bz2 |
add a SETUP_WITH opcode
It speeds up the with statement and correctly looks up the special
methods involved.
Diffstat (limited to 'Include/opcode.h')
-rw-r--r-- | Include/opcode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 36a35dc..9739782 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -141,8 +141,10 @@ extern "C" { #define CALL_FUNCTION_KW 141 /* #args + (#kwargs<<8) */ #define CALL_FUNCTION_VAR_KW 142 /* #args + (#kwargs<<8) */ +#define SETUP_WITH 143 + /* Support for opargs more than 16 bits long */ -#define EXTENDED_ARG 143 +#define EXTENDED_ARG 145 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyCmp_GT=Py_GT, PyCmp_GE=Py_GE, |