Mercurial > cpython-lru_cache-weakref
diff Include/opcode.h @ 54329:145376df3ad7 legacy-trunk
add a SETUP_WITH opcode
It speeds up the with statement and correctly looks up the special
methods involved.
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 25 May 2009 13:13:44 +0000 |
| parents | ef8fe9088696 |
| children | c2fdf25329ff |
line wrap: on
line diff
--- a/Include/opcode.h Mon May 25 04:34:39 2009 +0000 +++ b/Include/opcode.h Mon May 25 13:13:44 2009 +0000 @@ -141,8 +141,10 @@ #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,
