[Python-Dev] Re: PEP 279
Guido van Rossum
guido@python.org
Mon, 01 Apr 2002 21:41:45 -0500
> [RDH]
> > > Executive Summary:
> > > 1. iterindexed(collection) --> accepted
> [GvR]
> > 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
[David Ascher]
> 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/)