Message145705
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 |
|
Date |
User |
Action |
Args |
2011-10-17 14:52:54 | smarnach | set | recipients:
+ smarnach |
2011-10-17 14:52:54 | smarnach | set | messageid: <1318863174.33.0.432669073084.issue13201@psf.upfronthosting.co.za> |
2011-10-17 14:52:53 | smarnach | link | issue13201 messages |
2011-10-17 14:52:53 | smarnach | create | |
|