]> granicus.if.org Git - python/commit
Hopefully fix 3-way comparisons. This unfortunately adds yet another
authorGuido van Rossum <guido@python.org>
Tue, 18 Sep 2001 20:38:53 +0000 (20:38 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 18 Sep 2001 20:38:53 +0000 (20:38 +0000)
commitab3b0343b89b4683148dadaf89728ee1198ebee5
treece2bc61bcef280a23bbc326fd7ec755a72bf1baa
parenteb9490526508dc643c2329771f95a925e5412049
Hopefully fix 3-way comparisons.  This unfortunately adds yet another
hack, and it's even more disgusting than a PyInstance_Check() call.
If the tp_compare slot is the slot used for overrides in Python,
it's always called.

Add some tests that show what should work too.
Include/object.h
Lib/test/test_descr.py
Objects/object.c
Objects/typeobject.c