[Python-Dev] Re: PEP 279

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


On Tue, 2 Apr 2002, Ken Manheimer wrote:
> 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.

Whoops, twice - ".items() on mappings", and i was wrong, besides, as 
raymond pointed out...
-- 
Ken
klm@zope.com

AltStyle によって変換されたページ (->オリジナル) /