From 9bfef44d97d1ae24e03717e3d59024b44626a9de Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 29 Mar 1993 10:43:31 +0000 Subject: * Changed all copyright messages to include 1993. * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions --- Include/opcode.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Include/opcode.h') diff --git a/Include/opcode.h b/Include/opcode.h index a0db342d45..67c0b82e40 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -1,6 +1,6 @@ /*********************************************************** -Copyright 1991, 1992 by Stichting Mathematisch Centrum, Amsterdam, The -Netherlands. +Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum, +Amsterdam, The Netherlands. All Rights Reserved @@ -113,6 +113,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define LOAD_LOCAL 115 /* Index in name list */ #define LOAD_GLOBAL 116 /* Index in name list */ +#define LOAD_FAST 117 /* Local variable number */ +#define STORE_FAST 118 /* Local variable number */ +#define RESERVE_FAST 119 /* Number of local variables */ + #define SETUP_LOOP 120 /* Target address (absolute) */ #define SETUP_EXCEPT 121 /* "" */ #define SETUP_FINALLY 122 /* "" */ -- cgit v1.2.1