Newcomer to Python tutorial question

Peter Pearson ppearson at nowhere.invalid
Fri May 8 17:08:35 CEST 2009


On Fri, 8 May 2009 10:16:55 +0100, Alan Cameron <alan.cameron at iname.com> wrote:
[snip]
>
> In particular reference to the tutorial section
> http://docs.python.org/3.0/tutorial/datastructures.html#nested-list-comprehensions
>
> There is a word which is ambiguous, at least to me.
>
> Perhaps you can explain the use of the word 'comprehensions'.
>
> Comprehension I understand
> Comprehensions I don't.
>
> Is there a glossary of terms somewhere?

"Comprehension", in this context, is a computer-science term, described
in section 5.1.3 of the web page you quoted.  If you look up
"comprehension" in Wikipedia, you'll get a description of various
uses of the term, including a pointer to:
http://en.wikipedia.org/wiki/List_comprehension

-- 
To email me, substitute nowhere->spamcop, invalid->net.



More information about the Python-list mailing list