Makoto Kuwata <kwa...@gmail.com>:

>     val = yield from xs
>
> is same as::
>
>     for x in xs:
>       ret = yield x
>     val = ret
>
> Is it true? Do I understand correctly?

The return value is not one of the yielded values. Instead, it's the
value returned by the generator/coroutine.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to