diff options
author | Guido van Rossum <guido@python.org> | 2001-08-15 23:57:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-15 23:57:02 (GMT) |
commit | b8f636641fd59656aeb38825cec38e4f208e7500 (patch) | |
tree | 628cca41710792a5ebc623827740d94d4c179b99 /PCbuild/unicodedata.dsp | |
parent | ba634b2ec3977cdc61ab097bd455d3ab0f925bf1 (diff) | |
download | cpython-b8f636641fd59656aeb38825cec38e4f208e7500.zip cpython-b8f636641fd59656aeb38825cec38e4f208e7500.tar.gz cpython-b8f636641fd59656aeb38825cec38e4f208e7500.tar.bz2 |
- 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.)
Diffstat (limited to 'PCbuild/unicodedata.dsp')
0 files changed, 0 insertions, 0 deletions