[issue23699] Add a macro to ease writing rich comparisons

Nick Coghlan report at bugs.python.org
Mon May 29 23:02:41 EDT 2017


Nick Coghlan added the comment:

Assigning to myself to review.

To add some context that hasn't come up previously, the essential idea for this macro originated in the "Py3C" extension module compatibility project, where it helps authors of Python 2 extension modules update their projects to be compatible with Python 3: https://py3c.readthedocs.io/en/latest/reference.html#comparison-helpers

As with most such pattern extractions, the key intent is to make it easier for developers to correctly implement a Python-specific protocol in C by replacing the current copy-and-paste handling of such cases with the use of C's preprocessor.

----------
assignee:  -> ncoghlan
nosy: +ncoghlan
stage:  -> patch review
versions: +Python 3.7 -Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23699>
_______________________________________


More information about the Python-bugs-list mailing list