comprehending comprehensions

Alan Gauld alan.gauld at btinternet.com
Sat Jun 14 20:41:20 CEST 2003


On Sat, 14 Jun 2003 13:52:17 -0400, Roy Smith <roy at panix.com>
wrote:
> Why are list comprehensions called what they are?  I find the name very 
> confusing.  Is this some standard computer science term?  Is it stolen 
> from some other language?

I know it from the functional programming language Haskell

www.haskell.org

And I believe it's a math term for collecting things together.
Comprehension as in comprehensive not as in comrehending
(understanding). But I could be wrong on that...

Alan g.




More information about the Python-list mailing list