[Python-Dev] Re: PEP 279

Ken Manheimer klm@zope.com
Tue, 2 Apr 2002 18:47:13 -0500 (EST)


On Tue, 2 Apr 2002, Tim Peters wrote:

> > So now I'd like to choose between enumerate() and indexer().  Any
> > closing arguments?
> 
> I'm leaving that quote anonymous so nobody gives it more or less weight than
> it deserves <wink>.  I prefer enumerate(), because a transitive verb is more
> appropriate than a noun.  OTOH, enumerate() is just a fancy pants way of
> saying "countoff()", which is nicely confusable with operator.countOf if
> you're tired <wink>.

I know i'm late for this party, but i'd like to introduce 'itemize()'.

"Everybody, itemize().  Itemize(), everybody.  Pleased to meetcha, i'm 
sure."

Nice thing about itemize is it turns values into key/value tuples, much 
like .items() on various sequences.

-- 
Ken
klm@zope.com