[Python-3000] range() issues
Guido van Rossum
guido at python.org
Thu May 1 01:00:25 CEST 2008
On Wed, Apr 30, 2008 at 3:49 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Guido van Rossum wrote:
>
> > I would like to see the following:
> >
> > - sq_length should return maxsize if the actual value doesn't fit
> >
>
> So that code will silently behave as though the rest of
> the sequence wasn't there some of the time?
Only if it uses LBYL.
> Can you elaborate on the rationale for this? I'm having
> trouble seeing how it's a good idea.
Ask the designers of the Java collections package.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list