What about an EXPLICIT naming scheme for built-ins?

Alex Martelli aleaxit at yahoo.com
Sun Sep 5 23:03:26 CEST 2004

Carlos Ribeiro <carribeiro at gmail.com> wrote:
> first time -- it's obvious once you see it, but still, for some
> reason, the list comprehension was more intuitive for me. I don't know
> about the rest of Pythoneers, specially newbies, but understanding
> *why* did I came up with my version may help to illustrate the mental
> model surrounding iterators.

I dunno either, but, FWIW, my wife Anna also had the same issue -- she
thought list comprehensions were always the right way to make lists.

It may have to do with the issue that list comprehension are a neat
GENERAL tool, while calling list, like calling, say, map or filter, may
be concise, clear and efficient but only works in specific cases.  Just
a guess on my part, but it seems a reasonable hypothesis.  Anna, do you
have any opinion in the matter?


More information about the Python-list mailing list