Changes between Version 3 and Version 5 of Ticket #18251


Ignore:
Timestamp:
07/29/16 13:57:35 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18251

    • Property Cc vdelecroix added
  • Ticket #18251 – Description

    v3 v5  
    1010This should be fixed by using coercing comparison (`_cmp_` or `_richcmp_`).
    1111
    12 We need access to the CPython function `PyObject_RichCompare()` which —as far as I know— is not exposed by Python. So we need a Python interface to `PyObject_RichCompare()` which I propose to call `richcmp()`.
     12The fix is this ticket is meant to be an example for other plain Python modules which need to implement comparison using coercion.
     13
     14We 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()`.