[Python-Dev] Re: PEP 279
Wed, 3 Apr 2002 10:34:51 -0500
----- Original Message -----
From: "Guido van Rossum" <firstname.lastname@example.org>
> 0. itemize
> 1. enumerate
After the conversation on names, are you ready to choose between
enumerate(), enum(), and itemize()?
enumerate -- I like this one best because it does what it says. Liked by
most of the py-dev respondants.
enum -- I like this one too. A tiny bit of clarity traded for pithiness
(like dict vs dictionary). Must rhyme with 'doom', not with 'dumb' <grin>.
itemize -- Could be confusing since amap.items() != list(itemize(amap)).
Unfortunate association with income taxes :(
Raymond Hettinger, CPA