mirror of
https://github.com/python/cpython.git
synced 2024-11-28 08:20:55 +01:00
c600411755
* object.[ch], bltinmodule.c, fileobject.c: changed str() to call strobject() which calls an object's __str__ method if it has one. strobject() is also called by writeobject() when PRINT_RAW is passed. * ceval.c: rationalize code for PRINT_ITEM (no change in function!) * funcobject.c, codeobject.c: added compare and hash functionality. Functions with identical code objects and the same global dictionary are equal. Code objects are equal when their code, constants list and names list are identical (i.e. the filename and code name don't count). (hash doesn't work yet since the constants are in a list and lists can't be hashed -- suppose this should really be done with a tuple now we have resizetuple!) |
||
---|---|---|
.. | ||
accessobject.c | ||
classobject.c | ||
dictobject.c | ||
fileobject.c | ||
floatobject.c | ||
frameobject.c | ||
funcobject.c | ||
intobject.c | ||
listobject.c | ||
longobject.c | ||
mappingobject.c | ||
methodobject.c | ||
moduleobject.c | ||
object.c | ||
rangeobject.c | ||
stringobject.c | ||
tupleobject.c | ||
typeobject.c | ||
xxobject.c |