cpython/Objects
Guido van Rossum b8f636641f - Another big step in the right direction. All the overridable
operators for which a default implementation exist now work, both in
  dynamic classes and in static classes, overridden or not.  This
  affects __repr__, __str__, __hash__, __contains__, __nonzero__,
  __cmp__, and the rich comparisons (__lt__ etc.).  For dynamic
  classes, this meant copying a lot of code from classobject!  (XXX
  There are still some holes, because the comparison code in object.c
  uses PyInstance_Check(), meaning new-style classes don't get the
  same dispensation.  This needs more thinking.)

- Add object.__hash__, object.__repr__, object.__str__.  The __str__
  dispatcher now calls the __repr__ dispatcher, as it should.

- For static classes, the tp_compare, tp_richcompare and tp_hash slots
  are now inherited together, or not at all.  (XXX I fear there are
  still some situations where you can inherit __hash__ when you
  shouldn't, but mostly it's OK now, and I think there's no way we can
  get that 100% right.)
2001-08-15 23:57:02 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
bufferobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
cellobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
classobject.c PyMethod_Type: add a tp_descr_get slot function to ensure proper 2001-08-15 17:52:31 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
descrobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
dictobject.c Add PyDict_Merge(a, b, override): 2001-08-10 20:28:28 +00:00
fileobject.c Apply anonymous SF patch #441229. 2001-08-09 18:14:59 +00:00
floatobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
frameobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
funcobject.c func_getattro(), func_setattro(): Implement the new semantics for 2001-08-14 18:23:58 +00:00
intobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
iterobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
listobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
longobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
methodobject.c Remove much dead code from ceval.c 2001-08-12 21:52:24 +00:00
moduleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
object.c - Rename PyType_InitDict() to PyType_Ready(). 2001-08-07 17:24:28 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
sliceobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
stringobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
tupleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
typeobject.c - Another big step in the right direction. All the overridable 2001-08-15 23:57:02 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c SF patch #438013 Remove 2-byte Py_UCS2 assumptions 2001-08-09 22:21:55 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00