Mercurial > cpython-lru_cache-weakref
diff Include/opcode.h @ 1288:9fed5726a36d legacy-trunk
Several changes in one:
(1) dictionaries/mappings now have attributes values() and items() as
well as keys(); at the C level, use the new function mappinggetnext()
to iterate over a dictionary.
(2) "class C(): ..." is now illegal; you must write "class C: ...".
(3) Class objects now know their own name (finally!); and minor
improvements to the way how classes, functions and methods are
represented as strings.
(4) Added an "access" statement and semantics. (This is still
experimental -- as long as you don't use the keyword 'access' nothing
should be changed.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 19 May 1993 14:50:45 +0000 |
| parents | f820e6917f07 |
| children | 519c25039c6a |
line wrap: on
line diff
--- a/Include/opcode.h Mon May 17 08:34:16 1993 +0000 +++ b/Include/opcode.h Wed May 19 14:50:45 1993 +0000 @@ -100,6 +100,7 @@ #define COMPARE_OP 106 /* Comparison operator */ #define IMPORT_NAME 107 /* Index in name list */ #define IMPORT_FROM 108 /* Index in name list */ +#define ACCESS_MODE 109 /* Name (mode is int on top of stack) */ #define JUMP_FORWARD 110 /* Number of bytes to skip */ #define JUMP_IF_FALSE 111 /* "" */
