summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-17 15:28:20 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-17 15:28:20 (GMT)
commit8998b4f691db9bf1efcdd1fd496aaea64200a957 (patch)
tree18755b2e10c1166605a8c66a1c90059b1430d7c6 /Objects/intobject.c
parentb226b0c07840d55e91e549deea91d95cdf32c624 (diff)
downloadcpython-8998b4f691db9bf1efcdd1fd496aaea64200a957.zip
cpython-8998b4f691db9bf1efcdd1fd496aaea64200a957.tar.gz
cpython-8998b4f691db9bf1efcdd1fd496aaea64200a957.tar.bz2
Rich comparisons.
- Got rid of instance_cmp(); refactored instance_compare(). - Added instance_richcompare() which calls __lt__() etc. Some unrelated stuff mixed in: - Aligned comments in various large struct initializers. - Better test to avoid recursion if __coerce__ returns self as the first argument (this is an unrelated fix by Neil Schemenauer!). - Style nit: don't use Py_DECREF(Py_NotImplemented); use Py_DECREF(result) -- it just looks better. :-)
Diffstat (limited to 'Objects/intobject.c')
0 files changed, 0 insertions, 0 deletions