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
Fri Apr 4 18:39:50 EDT 2014


On Sat, Apr 5, 2014 at 9:07 AM, Mark H Harris <harrismh777 at gmail.com> wrote:
> On 4/4/14 4:50 PM, Mark Lawrence wrote:
>
>> You could answer all of the above for yourself if you were to use your
>> favourite search engine.
>
>
> hi Mark, yeah, condescending as that is, been there done that.
>
>    Its always better to get a straight answer from the core people than to
> rely on rumors and fork discussions found on google.

Yes, because python-list responses are *so* much more reliable than
official statements on python.org, which are easily found with a
Google search. Or a DuckDuckGo search. Or a Bing search. Or probably
even gopher, we're not partisan here.

ChrisA



More information about the Python-list mailing list