[Tutor] Should this be a list comprehension or something?

Terry Carroll carroll at tjc.com
Fri Jan 28 23:06:36 CET 2005


On Fri, 28 Jan 2005, Alan Gauld wrote:

> Its not so much a criterion that they *should* be used that way,
> its just that its what they do. A list comprehension creates a list!
> Thats why they are called *list* comprehensions. :-)

See, I'd always figured that the reason it was called a list 
comprehension was because the list comprehension operated on a list, 
and the operation was comprehension.



More information about the Tutor mailing list