[Python-ideas] range

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Feb 22 18:40:29 CET 2013


Nick Coghlan <ncoghlan at ...> 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






More information about the Python-ideas mailing list