[Python-Dev] PEP 479 and asyncio (original) (raw)
Victor Stinner victor.stinner at gmail.com
Fri Nov 28 10🔞54 CET 2014
- Previous message: [Python-Dev] PEP 479 and asyncio
- Next message: [Python-Dev] PEP 479 and asyncio
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] PEP 479 and asyncio
- Next message: [Python-Dev] PEP 479 and asyncio
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]