[Python-Dev] Lukewarm about range literals

Charles G Waldman cgw@fnal.gov
Tue, 29 Aug 2000 11:48:43 -0500 (CDT)


Guido van Rossum writes:

 > Alas, it could never work.  Look at this:
 > 
 >   for i in a:b:c
 > 
 > Does it mean
 > 
 >   for i in (a:b) : c
 > 
 > or
 > 
 >   for i in a: (b:c)

Of course, it means "for i in the range from a to b-1 with stride c", but as written it's
illegal because you'd need another `:' after the c.  <wink>

 > I'm postponing this discussion until after Python 2.0 final is
 > released -- the feature freeze is real!

Absolutely.  I won't bring this up again, until the approprate time.