Chris Angelico wrote:
I don't understand why you would use "yield from" as a synonym for
"await". They are not equivalent. Why would you use one in place of
the other?

As far as I understand, currently the implementations of "yield from"
and "await" are sufficiently similar that they *would* be equivalent
if the compiler didn't go out of its way to prevent you from
mixing them up.

It does that because they're conceptually different things, and
a future version of CPython might implement them differently.

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

Reply via email to