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

Chris Angelico rosuav at gmail.com
Tue Mar 25 01:11:24 CET 2014

On Tue, Mar 25, 2014 at 10:56 AM, Mark H Harris <harrismh777 at gmail.com> wrote:
> What is needed is the explicit closure "grab" recommended by ChrisA.

Which does work. You do know why, right?


More information about the Python-list mailing list