New submission from Petr Viktorin:

Rich comparison functions of many builtin types include a block of boilerplate 
which can be consolidated in a macro. The macro can be useful for third-party 
extensions as well as CPython itself.

See this e-mail for a longer write-up: 
https://mail.python.org/pipermail/python-ideas/2015-March/032564.html

----------
files: 0001-Define-Py_RICHCOMPARE-to-ease-writing-rich-compariso.patch
keywords: patch
messages: 238441
nosy: encukou
priority: normal
severity: normal
status: open
title: Add a macro to ease writing rich comparisons
type: enhancement
Added file: 
http://bugs.python.org/file38541/0001-Define-Py_RICHCOMPARE-to-ease-writing-rich-compariso.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