[issue28310] Mixing yield and return with value is allowed

Xiang Zhang report at bugs.python.org
Thu Sep 29 06:22:52 EDT 2016


Xiang Zhang added the comment:

`return value` is allowed in a generator to support `yield from'. You can read https://www.python.org/dev/peps/pep-0380 for the entire story.

----------
nosy: +xiang.zhang
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28310>
_______________________________________


More information about the Python-bugs-list mailing list