[Python-ideas] Implement comparison operators for range objects

Sven Marnach sven at marnach.net
Wed Oct 12 22:38:11 CEST 2011


Sven Marnach schrieb am Mi, 12. Okt 2011, um 21:33:26 +0100:
> The only way to access the original start, stop and step values is
> by parsing the representation, and these values don't affect the
> behaviour of the range object in any other way.

start, stop and step of course *do* affect the behaviour of the range
object.  What I meant is that the only way to tell the difference
between two range objects defining the same sequence but creates with
different values of start, stop and step is by looking at the
representation.

 -- Sven



More information about the Python-ideas mailing list