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

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Mar 24 10:58:58 CET 2014

On 24/03/2014 05:52, Mark H Harris wrote:
>     How so?  Read Guido's argument above. Another way to answer this
> question is that I have been programming with Python for almost a decade
> and I've not used lambda. In fact, I have gone out of my way to NOT use
> lambda because I am fully aware that the BDFL hates it. Reduce is no
> longer in the standard library (although you can import it) and there
> are equally good ways to do what lambda was designed for without the
> hassle nor confusion.

Where do you get reduce from if it's not in the standard library?  As 
for lambda I've no real interest in it, other than when copying examples 
where it's used to (say) provide a key function.

My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

This email is free from viruses and malware because avast! Antivirus protection is active.

More information about the Python-list mailing list