Status of PEP's?

Andy Gimblett gimbo at ftech.net
Wed Mar 6 08:52:42 EST 2002


On Wed, Mar 06, 2002 at 08:38:51AM -0500, Michael Chermside wrote:
> 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.

This just came to me:

for index in indices(items):
    pass

or maybe better yet:

for index in items.indices():
    pass

?

-Andy

-- 
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.




More information about the Python-list mailing list