A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/091569.html below:

[Python-Dev] Py_CmpToRich removed, alternatives for comparison?

[Python-Dev] Py_CmpToRich removed, alternatives for comparison? [Python-Dev] Py_CmpToRich removed, alternatives for comparison?Benjamin Peterson benjamin at python.org
Thu Sep 3 00:19:46 CEST 2009
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 Py_CmpToRich function is removed.
>
> Should we copy Py_CmpToRich into our source tree?
> Otherwise we have fairly long cmp functions that have Py_CmpToRich inline.
>
> For C extension writers what is the suggested method for comparing
> types where Py_LT, Py_GT Py_GE etc are not useful?

Return Py_NotImplemented when you get them.



-- 
Regards,
Benjamin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4