mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
* 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
This commit is contained in:
parent
4b1302bd1d
commit
9bfef44d97
97 changed files with 559 additions and 246 deletions
|
@ -52,9 +52,9 @@ extern int verbose; /* Defined in pythonmain.c */
|
|||
extern char *argv0;
|
||||
#endif
|
||||
|
||||
/* Magic word to reject pre-0.9.4 .pyc files */
|
||||
/* Magic word to reject pre-0.9.9 .pyc files */
|
||||
|
||||
#define MAGIC 0x949494L
|
||||
#define MAGIC 0x99BE2AL
|
||||
|
||||
static object *modules;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue