This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients barry, ethan.furman, lemburg, petr.viktorin, rhettinger, serhiy.storchaka, skrah
Date 2015-05-18.14:23:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I mean it's clearer to have:

    result = long_compare(self, other);
    return Py_cmp_to_bool(result, op);


    result = long_compare(self, other);
    Py_RETURN_RICHCOMPARE(result, 0, op);

This is because in other places, like the proposed use
case in ,

the macro actually *performs* the "rich" comparison. In the above case
it just *converts* the result of long_compare().

Maybe the distinction does not matter in practice, but I'm not
too happy with it.
Date User Action Args
2015-05-18 14:23:57skrahsetrecipients: + skrah, lemburg, barry, rhettinger, petr.viktorin, ethan.furman, serhiy.storchaka
2015-05-18 14:23:57skrahsetmessageid: <>
2015-05-18 14:23:57skrahlinkissue23699 messages
2015-05-18 14:23:57skrahcreate