Is current integer for-loop syntax a wart?
John Schmitt
jschmitt at ati.com
Fri Mar 8 19:46:27 EST 2002
> -----Original Message-----
> From: Cromwell, Jeremy [mailto:jcromwell at ciena.com]
> Sent: Friday, March 08, 2002 10:26 AM
> To: 'Python List'
> Cc: 'David Eppstein'; 'James_Althoff at i2.com'
> Subject: Is current integer for-loop syntax a wart?
[...]
> -Not a wart
> This is the most pythonic way to write an integer for loop.
> I would oppose
> almost any change.
[...]
Definitely NOT a wart.
> -----Original Message-----
> From: Michael Chermside [mailto:mcherm at destiny.com]
> Sent: Wednesday, March 06, 2002 5:39 AM
> To: python-list
> Subject: Re: Status of PEP's?
>
>
> Not that my opinion means anything, but I'll go ahead and
> express it anyhow.
>
> 1) I think that "for i in range(len(items)):" is awkward, annoying,
> and detracts from Python. There should be a better way.
Is it? Other people have said things to that effect too. To me it looks
straightforward, unambiguous and explicit. I fail to see anything awkward
or annoying about it. 'Awkward' and 'annoying' sound like aesthetic issues
to me.
I have yet to see any proposed syntax that is more obvious, or has more
generality, or has fewer restrictions. The proposal should improve at
*least one* of these in order to be adopted by the community.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20020308/3d12a7f6/attachment.html>
More information about the Python-list
mailing list