[Python-ideas] Map to Many Function

random832 at fastmail.us random832 at fastmail.us
Sun Aug 16 03:57:18 CEST 2015


On Sat, Aug 15, 2015, at 18:54, Wes Turner wrote:
> Thanks! Hadn't been aware that there is a flatten() func in stdlib.

You should be aware that this will flatten _any_ list or tuple elements
inside the elements, and it is gone in python 3.

Also, it constructs the result as a list rather than an iterator, if
that matters to you.


More information about the Python-ideas mailing list