[issue23699] Add a macro to ease writing rich comparisons

Marc-Andre Lemburg report at bugs.python.org
Thu May 14 14:05:06 CEST 2015


Marc-Andre Lemburg added the comment:

On 14.05.2015 13:29, Petr Viktorin wrote:
> 
> Marc-Andre, Barry, you expressed interest in the macro on the mailing list; do you still think it's a good idea?

Yes.

The fact that the macro can save us more than a hundred lines
of code in Python itself is proof enough that it's useful to have.

Only once concept to learn, fewer bugs, one place to apply change
(should they become necessary), etc. etc.

This is a standard case of refactoring to simplify code and also
a standard case where we use macros in Python.

----------

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


More information about the Python-bugs-list mailing list