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/2012-March/117804.html below:

[Python-Dev] PEP czar for PEP 3144?

[Python-Dev] PEP czar for PEP 3144? [Python-Dev] PEP czar for PEP 3144?Ethan Furman ethan at stoneleaf.us
Mon Mar 19 20:37:19 CET 2012
Nick Coghlan wrote:
> Collapsing the address list has to build the result list anyway to
> actually handle the deduplication part of its job, so returning a
> concrete list makes sense in that case.

Having only one function return a list instead of an iterator seems 
questionable.

Depending on the code it could either keep track of what it has returned 
so far in a set and avoid duplication that way; or, just return an 
`iter(listobject)` instead of `listobject`.

~Ethan~
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