[Python-ideas] Map to Many Function
Wes Turner
wes.turner at gmail.com
Sun Aug 16 04:02:44 CEST 2015
On Aug 15, 2015 8:57 PM, <random832 at fastmail.us> wrote:
>
> 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.
So it would then flatten e.g. strings without flinching
>
> Also, it constructs the result as a list rather than an iterator, if
> that matters to you.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150815/1d8d841d/attachment.html>
More information about the Python-ideas
mailing list