<p dir="ltr"><br>
On Aug 15, 2015 8:57 PM, <<a href="mailto:random832@fastmail.us">random832@fastmail.us</a>> wrote:<br>
><br>
> On Sat, Aug 15, 2015, at 18:54, Wes Turner wrote:<br>
> > Thanks! Hadn't been aware that there is a flatten() func in stdlib.<br>
><br>
> You should be aware that this will flatten _any_ list or tuple elements<br>
> inside the elements, and it is gone in python 3.</p>
<p dir="ltr">So it would then flatten e.g. strings without flinching</p>
<p dir="ltr">><br>
> Also, it constructs the result as a list rather than an iterator, if<br>
> that matters to you.<br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
> Code of Conduct: <a href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a><br>
</p>