Mercurial > cpython-lru_cache-weakref
comparison Python/import.c @ 1257:1cabc2b6c970 legacy-trunk
* 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
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 29 Mar 1993 10:43:31 +0000 |
| parents | 2937897a7d8b |
| children | f820e6917f07 |
comparison
equal
deleted
inserted
replaced
| 1256:7aa9613ffd36 | 1257:1cabc2b6c970 |
|---|---|
| 50 #include "dl.h" | 50 #include "dl.h" |
| 51 | 51 |
| 52 extern char *argv0; | 52 extern char *argv0; |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 /* Magic word to reject pre-0.9.4 .pyc files */ | 55 /* Magic word to reject pre-0.9.9 .pyc files */ |
| 56 | 56 |
| 57 #define MAGIC 0x949494L | 57 #define MAGIC 0x99BE2AL |
| 58 | 58 |
| 59 static object *modules; | 59 static object *modules; |
| 60 | 60 |
| 61 /* Forward */ | 61 /* Forward */ |
| 62 static int init_builtin PROTO((char *)); | 62 static int init_builtin PROTO((char *)); |
