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
Mon Mar 24 20:11:24 EDT 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?

ChrisA



More information about the Python-list mailing list