comprehending comprehensions

Sean 'Shaleh' Perry shalehperry at attbi.com
Sat Jun 14 14:21:45 EDT 2003


On Saturday 14 June 2003 10:52, Roy Smith 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?

it came from the functional programing world via ML (or was it Haskell).  
That's what they called it.

looking up comprehension in a dictionary (.com) I find :

3. Logic. The sum of meanings and corresponding implications inherent in a 
term.

which I suspect is the meaning used here.






More information about the Python-list mailing list