Changes between Version 5 and Version 7 of Ticket #18251


Ignore:
Timestamp:
07/29/16 14:36:57 (6 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18251 – Description

    v5 v7  
    1010This should be fixed by using coercing comparison (`_cmp_` or `_richcmp_`).
    1111
    12 The fix is this ticket is meant to be an example for other plain Python modules which need to implement comparison using coercion.
     12The fix in this ticket is meant to be an example for other plain Python modules which need to implement comparison using coercion.
    1313
    1414We need access to the CPython function `PyObject_RichCompare()` which —as far as I know— is not exposed by Python. So we add a Python interface to `PyObject_RichCompare()` called `richcmp()`.