Is current integer for-loop syntax a wart?
Aahz Maruch
aahz at panix.com
Sat Mar 9 06:33:08 EST 2002
In article <mailman.1015612095.8491.python-list at python.org>,
Cromwell, Jeremy <jcromwell at ciena.com> wrote:
>PEP 276 (Simple Iterator for ints) and PEP 284 (Integer for-loops), among
>others, are written from the perspective that the current integer for-loop
>syntax
>
> for i in range(10):
>
>is a wart. Is this true? That is, where does the Python community stand on
>this issue?
Wart? It's somewhat awkward for heavy-duty manipulation of sequence
indexes, but the proposals that suggest adding a new function or two to
handle that are best IMO.
--
--- Aahz <*> (Copyright 2002 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"Argue for your limitations, and sure enough they're yours." --Richard Bach
More information about the Python-list
mailing list