A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-September/068947.html below:

[Python-Dev] Suggestion for a new built-in

[Python-Dev] Suggestion for a new built-in - flatten [Python-Dev] Suggestion for a new built-in - flattenBrett Cannon brett at python.org
Fri Sep 22 21:01:28 CEST 2006
On 9/22/06, skip at pobox.com <skip at pobox.com> wrote:
>
>
>     Michael> There are several different possible approaches in pure
> Python,
>     Michael> but is this an idea that has legs ?
>
> Why not add it to itertools?  Then, if you need a true list, just call
> list() on the returned iterator.


Yeah, this is a better solution.  flatten() just doesn't scream "built-in!"
to me.

-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20060922/35d33452/attachment.htm 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4