[docs] [issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

Georg Brandl report at bugs.python.org
Mon Jan 20 08:45:30 CET 2014


Georg Brandl added the comment:

Hmm, the yield statement is now basically the same as any expression statement -- just like a function call.  The only reason it's a separate grammar symbol is that otherwise yield expressions would have to be parenthesized.

Can the patch be updated to make this a bit clearer?  Otherwise I like the approach of moving the info to the expressions page.

----------

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


More information about the docs mailing list