On Fri, Dec 8, 2017 at 2:08 AM, ast wrote:
> Hello,
>
> According to: https://www.python.org/dev/peps/pep-0492/#await-expression
> an awaitable object is:
>
> - A native coroutine object returned from a native coroutine function
> - A generator-based coroutine object returned from a function decor
"ast" a écrit dans le message de
news:5a2a568c$0$3699$426a7...@news.free.fr...
I made some experiment.
It seems that the iterator shall provide None values, an other value
raises an exception: "RuntimeError: Task got bad yield: 1"
and in instruction "res = await obj", res got the StopIterati
Hello,
According to:
https://www.python.org/dev/peps/pep-0492/#await-expression
an awaitable object is:
- A native coroutine object returned from a native coroutine function
- A generator-based coroutine object returned from a function decorated
with types.coroutine()
- An object with an __a