etymology of "list comprehension"?

mh at pixar.com mh at pixar.com
Fri Nov 7 17:28:30 EST 2008


"Martin v. Lowis" <martin at v.loewis.de> wrote:
> The definition in logic, in turn, matches my understanding of the
> English word "to comprehend": If I know all attributes, marks,
> etc of an object, I understand it fully, i.e. I comprehend it.

I think also that as was pointed out, "comprehension" meaning
"comprehensive" also makes sense, e.g.

a comprehensive definition of positive odd numbers:

   { x | x = 2k+1, for all integers k >= 0 }

as opposed to

   { 1, 3, 5, ... }


Thanks everybody, I feel much better informed now!

-- 
Mark Harrison
Pixar Animation Studios



More information about the Python-list mailing list