A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-April/139576.html below:

[Python-Dev] A macro for easier rich comparisons

[Python-Dev] A macro for easier rich comparisons [Python-Dev] A macro for easier rich comparisonsBarry Warsaw barry at python.org
Tue Apr 28 16:59:17 CEST 2015
On Apr 28, 2015, at 11:13 AM, Victor Stinner wrote:

>It would be nice to have a six module for C extensions. I'm quite sure
>that many projects are already full of #ifdef PYTHON3 ... #else ...
>#endif macros.

Maybe encapsulating some of the recommendations here:

https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef#Python_extension_modules

(We really need to collect all this information in on place.)

>> #define Py_RETURN_RICHCOMPARE(val1, val2, op)

I think this macro would make a nice addition to the C API.  It might read
better as `Py_RETURN_RICHCOMPARE(val1, op, val2)`.

Cheers,
-Barry
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