[Python-Dev] PEP 492: async/await in Python; v3 (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 29 11:13:03 CEST 2015
- Previous message (by thread): [Python-Dev] PEP 492: async/await in Python; v3
- Next message (by thread): [Python-Dev] PEP 492: async/await in Python; v3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yury Selivanov wrote:
3. GenObject iter and next raise error only if it has CONATIVECOROUTINE flag. So iter(), next(), for..in aren't supported only for 'async def' functions (but will work ok on asyncio generator-based coroutines)
What about new 'async def' code called by existing code that expects to be able to use iter() or next() on the future objects it receives?
4. 'yield from' only raises an error if it yields a coroutine with a CONATIVECOROUTINE from a regular generator.
Won't that prevent some existing generator-based coroutines (ones not decorated with @coroutine) from calling ones implemented with 'async def'?
-- Greg
- Previous message (by thread): [Python-Dev] PEP 492: async/await in Python; v3
- Next message (by thread): [Python-Dev] PEP 492: async/await in Python; v3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]