
Feb. 22, 2013
11:40 a.m.
Nick Coghlan <ncoghlan@...> writes:
-1 from me as well. We don't even implement concatenation and repetition for ranges in order to keep them simple - we have to caveat the range docs to point out they don't *quite* implement the full sequence API due to this restriction.
However, I will note that starting in Python 3.3, range objects expose their "start", "stop" and "step" attributes. That makes it much easier for third party software to manipulate them arithmetically.
Cheers, Nick.
Any plans to make range a valid base class to build upon in future releases? Best, Wolfgang