[Python-Dev] Py_CmpToRich removed, alternatives for comparison? (original) (raw)
Benjamin Peterson benjamin at python.org
Thu Sep 3 00:19:46 CEST 2009
- Previous message: [Python-Dev] Py_CmpToRich removed, alternatives for comparison?
- Next message: [Python-Dev] OT : Cannot login to PyPI using MyOpenId
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/9/2 Campbell Barton <ideasman42 at gmail.com>:
For blender we have a number of types defined in the C/API like meshes, lamps, metaballs, nurbs etc that dont make sense with some of richcmp's operations. A problem I have is that in python 3.1 the PyCmpToRich function is removed.
Should we copy PyCmpToRich into our source tree? Otherwise we have fairly long cmp functions that have PyCmpToRich inline. For C extension writers what is the suggested method for comparing types where PyLT, PyGT PyGE etc are not useful?
Return Py_NotImplemented when you get them.
-- Regards, Benjamin
- Previous message: [Python-Dev] Py_CmpToRich removed, alternatives for comparison?
- Next message: [Python-Dev] OT : Cannot login to PyPI using MyOpenId
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]