[issue33555] No SyntaxError raised for `return` with argument inside generator

Serhiy Storchaka report at bugs.python.org
Thu May 17 07:40:44 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is not silently ignored. It is used as an argument to construct StopIteration. See The Python Language Reference:

https://docs.python.org/3/reference/simple_stmts.html#the-return-statement

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33555>
_______________________________________


More information about the Python-bugs-list mailing list