[Python-3000] range() issues
Facundo Batista
facundobatista at gmail.com
Wed Apr 30 01:17:45 CEST 2008
2008/4/29, Benjamin Peterson <musiccomposition at gmail.com>:
> On Tue, Apr 29, 2008 at 4:09 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
> > Put another way: range(n) currently works, in Py3k, for n > sys.maxsize.
> > What's the rationale for breaking that?
>
> So we can support other sequence methods. (I think.)
The point is that we're sacrificing a good feature (don't worry about
the limit of range(), Python is safe), in favor of rarely used
features (index a range()... what's the point?; or knowing its
length... hey, you created range, you should know its length).
Regards,
--
. Facundo
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-3000
mailing list