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/137252.html below:

[Python-Dev] PEP 479 and asyncio

[Python-Dev] PEP 479 and asyncio [Python-Dev] PEP 479 and asyncioVictor Stinner victor.stinner at gmail.com
Fri Nov 28 10:18:54 CET 2014
2014-11-28 10:12 GMT+01:00 Greg Ewing <greg.ewing at canterbury.ac.nz>:
> I don't understand. If I'm interpreting PEP 479 correctly, in
> 'x = yield from foo', a StopIteration raised by foo.__next__()
> doesn't get turned into a RuntimeError

The Trollius coroutine uses "raise Return(value)" which is basically a
"raise StopIteraton(value)", and this is forbidden by the PEP 479.
With the PEP 479, the StopIteration is replaced with a RuntimeError.

Victor
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