Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

Marko Rauhamaa marko at pacujo.net
Mon Apr 7 00:54:27 EDT 2014


Steven D'Aprano <steve+comp.lang.python at pearwood.info>:

> On Sun, 06 Apr 2014 23:10:47 +0300, Marko Rauhamaa wrote:
>> It is academic because the author, Raymond Smullyan, was a professor
>> of philosophy and, more importantly, my professor selected that as a
>> textbook for us graduate students.
>
> Ah. Well they do that, don't they? I've always consider the ability of
> professors to select their own book as text to be a classic case of
> conflict of interest. They're supposed to pick the best book, not
> necessarily the one that earns them money.

Note that "my professor" above was not Raymond Smullyan.


Marko



More information about the Python-list mailing list