A Moronicity of Guido van Rossum

Fredrik Lundh fredrik at pythonware.com
Sun Oct 2 22:34:21 CEST 2005

"Michael" wrote:

> List comprehensions get their name (AFAICT) very clearly from set
> comprehensions in mathematics. As a result anyone who has ever seen
> a set comprehension in maths goes "oooh, I see". They're not the same, but
> IMO they're close enough to warrant that name.

fwiw, they've also been around for ages:


(the name goes back to the early eighties, the construct is older than that)


More information about the Python-list mailing list