[issue8748] integer-to-complex comparisons give incorrect results

Mark Dickinson report at bugs.python.org
Sun May 30 12:26:59 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Meador, I obviously haven't been thinking clearly about this.

Can you think of any reason that we shouldn't just copy the py3k implementation of complex_richcompare wholesale to trunk, with the single modification of replacing "if (PyLong_Check(w))" with "if (PyInt_Check(w) || PyLong_Check(w))"?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8748>
_______________________________________


More information about the Python-bugs-list mailing list