[issue2603] Make range __eq__ work

Raymond Hettinger report at bugs.python.org
Thu Apr 17 09:33:56 CEST 2008


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

That was a typo.  The pair was range(5,10,2)-->[5, 7, 9] and range
(5,11,2)-->[5, 7, 9].  The formula works because the it uses seqlen 
instead of a stop value.

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


More information about the Python-bugs-list mailing list