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/2014-November/137052.html below:

Change StopIteration handling inside generators

[Python-Dev] PEP 479: Change StopIteration handling inside generators [Python-Dev] PEP 479: Change StopIteration handling inside generatorsRon Adam ron3200 at gmail.com
Sat Nov 22 22:07:53 CET 2014
On 11/22/2014 03:01 PM, Terry Reedy wrote:
>
>> Then both a comprehension and a generator expressions can be viewed as
>> defining iterators,
>
> A comprehension is not an iterator.  The above would make a list or set
> comprehension the same as feeding a genexp to list() or set().

Correct, but we could think and reason about them in the same way.

Cheers,
    Ron


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