Mercurial > cpython-lru_cache-weakref
diff Lib/opcode.py @ 41226:19f7ff443718
Implement PEP 3115 -- new metaclass syntax and semantics.
The compiler package hasn't been updated yet; test_compiler.py fails.
Otherwise all tests seem to be passing now. There are no occurrences
of __metaclass__ left in the standard library.
Docs have not been updated.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 18 Mar 2007 15:41:51 +0000 |
| parents | 0ea24f4f2467 |
| children | 060c79f6d919 |
line wrap: on
line diff
--- a/Lib/opcode.py Sun Mar 18 03:42:15 2007 +0000 +++ b/Lib/opcode.py Sun Mar 18 15:41:51 2007 +0000 @@ -98,8 +98,10 @@ def_op('BINARY_OR', 66) def_op('INPLACE_POWER', 67) def_op('GET_ITER', 68) +def_op('STORE_LOCALS', 69) def_op('PRINT_EXPR', 70) +def_op('LOAD_BUILD_CLASS', 71) def_op('INPLACE_LSHIFT', 75) def_op('INPLACE_RSHIFT', 76) @@ -108,14 +110,13 @@ def_op('INPLACE_OR', 79) def_op('BREAK_LOOP', 80) def_op('WITH_CLEANUP', 81) -def_op('LOAD_LOCALS', 82) + def_op('RETURN_VALUE', 83) def_op('IMPORT_STAR', 84) def_op('MAKE_BYTES', 85) def_op('YIELD_VALUE', 86) def_op('POP_BLOCK', 87) def_op('END_FINALLY', 88) -def_op('BUILD_CLASS', 89) HAVE_ARGUMENT = 90 # Opcodes from here have an argument:
