Petr Viktorin added the comment:

Changed the macro to Py_RETURN_RICHCOMPARE. This is not an expression, allowing 
the use of a switch statement. On the other hand, it's even larger macro than 
before now.

>From the discussion it seems that doing this correctly is tricky to do this 
>correctly - another point for standardizing this.

I put everything in a single macro to ease review in Rietveld.

----------
Added file: 
http://bugs.python.org/file38657/Use-a-macro-to-reduce-boilerplate-in-rich-comparison.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23699>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to