encukou / py3c

A Python 2/3 compatibility layer for C extensions
http://py3c.readthedocs.org
MIT License
59 stars 20 forks source link

Use Py_RETURN_RICHCOMPARE instead of PY3C_RICHCMP #15

Closed encukou closed 6 years ago

encukou commented 6 years ago

Thanks to @stratakis, the PY3C_RICHCMP macro from py3c made it to CPython master, slightly reworked and renamed to Py_RETURN_RICHCOMPARE: https://github.com/python/cpython/commit/e8b19656396381407ad91473af5da8b0d4346e88

Use the official name (for py3.6 and below), and deprecate PY3C_RICHCMP.