[Python-3000] range() issues

Alexander Belopolsky alexander.belopolsky at gmail.com
Sun Apr 27 17:01:46 CEST 2008


On Sun, Apr 27, 2008 at 10:29 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> Alexander Belopolsky wrote:
..
> > I believe it would make sense to turn range(..) into a Sequence.
..
>  I like this as a goal - I'll make sure to find the time to help review any
> patches aimed at achieving it (starting with the one to cache the length of
> the range during object creation).

Thanks, Nick.  I have already implemented slicing and am going to
implement __contains__ and post a patch with tests and documentation
updates.  Should we reuse http://bugs.python.org/issue2690 or open a
new issue for this?


More information about the Python-3000 mailing list