commit | e797ec1cb8029b88730c246fc8c09623788571c3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 17 15:24:28 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 17 15:24:28 2001 +0000 |
tree | 7097a100ac66a99bd5537fc3f4da21202824593a | |
parent | 00e0f21be8517acde581ef7b93982e852c62ea70 [diff] |
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.