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/2009-March/087891.html below:

[Python-Dev] PEP 380 (yield from a subgenerator) comments

[Python-Dev] PEP 380 (yield from a subgenerator) comments [Python-Dev] PEP 380 (yield from a subgenerator) commentsGreg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 29 01:02:07 CET 2009
Guido van Rossum wrote:

> But it's been answered already -- we can't change the meaning of
> StopIteration() with a value unequal to None, so it has to be a
> separate exception, and it should not derive from StopIteration.

How about having StopIteration be a subclass of the
new exception? Then things that want to get generator
return values only have one exception to catch, and
things that only know about StopIteration will fail
to catch the new exception.

-- 
Greg

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