[Python-Dev] Re: PEP 279
Guido van Rossum
Mon, 01 Apr 2002 21:41:45 -0500
> > > Executive Summary:
> > > 1. iterindexed(collection) --> accepted
> > Except I want to think more about the name.
> Okay, here's what we have so far:
> iterindexed()-- five syllables is a mouthfull
> index() -- nice verb but could be confused the .index() method
> indexed() -- widely liked however adjectives should be avoided
> count() -- direct and explicit but often used in other contexts
> itercount() -- direct, explicit and hated by more than one person
> enumerate() -- a contender but doesn't mention iteration or indices
> iteritems() -- already used by dictionaries for key:value pairs
> My current fave is 'indexer'. Something which creates an index.
I like it! Raymond, what do you think?
--Guido van Rossum (home page: http://www.python.org/~guido/)