[issue2603] Make range __eq__ work

Georg Brandl report at bugs.python.org
Thu Apr 10 00:07:31 CEST 2008


Georg Brandl <georg at python.org> added the comment:

I have no opinion whether the patch should go in, but in any case:

* You should use PyObject_RichCompareBool.
* You should error-check the returns of those.

----------
nosy: +georg.brandl

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2603>
__________________________________


More information about the Python-bugs-list mailing list