]> granicus.if.org Git - python/commit
Rich comparisons. Refactored internal routine do_cmp() and added APIs
authorGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 15:24:28 +0000 (15:24 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 17 Jan 2001 15:24:28 +0000 (15:24 +0000)
commite797ec1cb8029b88730c246fc8c09623788571c3
tree7097a100ac66a99bd5537fc3f4da21202824593a
parent00e0f21be8517acde581ef7b93982e852c62ea70
Rich comparisons.  Refactored internal routine do_cmp() and added APIs
PyObject_RichCompare() and PyObject_RichCompareBool().

XXX Note: the code that checks for deeply nested rich comparisons is
bogus -- it assumes the two objects are always identical, rather than
using the same logic as PyObject_Compare().  I'll fix that later.
Objects/object.c