why no "do : until"?
Simon Brunning
SBrunning at trisystems.co.uk
Fri Jan 5 11:21:26 EST 2001
> From: Tim Peters [SMTP:tim.one at home.com]
> A study I did at the time said that about 15% of all "for" loops in Python
> code were of the form
>
> for i in range(len(a)):
>
> and that's both an obscure and inefficient way to spell the underlying
> idea.
Marc Lemburg's mxTools includes an indices function - indices(a) is
synonymous with range(len(a)).
Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk
-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.
More information about the Python-list
mailing list