[issue2603] Make range __eq__ work

Alexander Belopolsky report at bugs.python.org
Sat Apr 26 02:37:13 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

... and your patch produces wrong results:

>>> list(range(5,0,-2)) # expected [5, 3, 1]
[5, 3]

See my patch in issue2690 for a way to compute length correctly in 
range_new.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2603>
__________________________________


More information about the Python-bugs-list mailing list