[New-bugs-announce] [issue13201] Implement comparison operators for range objects

Sven Marnach report at bugs.python.org
Mon Oct 17 16:52:54 CEST 2011

New submission from Sven Marnach <sven at marnach.net>:

It seems some sort of consensus on how to compare range objects has emerged from the python-ideas discussion on comparison of range objects [1].

The attached patch defines '==' and '!=' for range object equality based on the sequence of values they represent.  The other comparison operators are left NotImplemented.

[1]: http://mail.python.org/pipermail/python-ideas/2011-October/012376.html

files: range-compare
messages: 145705
nosy: smarnach
priority: normal
severity: normal
status: open
title: Implement comparison operators for range objects
Added file: http://bugs.python.org/file23426/range-compare

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list