This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author greg.ewing
Recipients Bryan Koch, greg.ewing, steven.daprano, terry.reedy
Date 2019-01-18.22:38:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5C42555C.6060803@canterbury.ac.nz>
In-reply-to <1547771505.97.0.32419395184.issue35756@roundup.psfhosted.org>
Content
bryan.koch wrote:
> It would be awesome if invoking a generator above would throw a
> SyntaxError iff it contained a return and it wasn't invoked through `yield
> from`.

Why do you care about that so much? There's nothing to stop you
from ignoring the return value of an ordinary function. Why should
generator functions be different?
History
Date User Action Args
2019-01-18 22:38:28greg.ewingsetrecipients: + greg.ewing, terry.reedy, steven.daprano, Bryan Koch
2019-01-18 22:38:27greg.ewinglinkissue35756 messages
2019-01-18 22:38:27greg.ewingcreate