On Thu, Oct 13, 2011 at 5:27 AM, Sven Marnach <sven@marnach.net> wrote:
The current interface of ranges is that of a sequence and nothing
more. The only place where the original parameters that were used to
create the sequence pop up is in its representation. Giving those
parameters more weight seems a bit like remembering the list
coomprehension that was used to create a list and take this into
account when comparing lists (of course I'm exaggerating here to make
a point). [emphasis added]
>>> x = range(0,10,3)>>> xrange(0, 10, 3)>>> x.set_step(2)range(0, 10, 2)