A Moronicity of Guido van Rossum

Fredrik Lundh fredrik at pythonware.com
Sun Oct 2 16:34:21 EDT 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:

    http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?list+comprehension

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

</F>






More information about the Python-list mailing list