mirror of https://github.com/python/cpython
73a7e9b10b
The current behaviour of yield expressions inside comprehensions and generator expressions is essentially an accident of implementation - it arises implicitly from the way the compiler handles yield expressions inside nested functions and generators. Since the current behaviour wasn't deliberately designed, and is inherently confusing, we're deprecating it, with no current plans to reintroduce it. Instead, our advice will be to use a named nested generator definition for cases where this behaviour is desired. |
||
---|---|---|
.. | ||
compound_stmts.rst | ||
datamodel.rst | ||
executionmodel.rst | ||
expressions.rst | ||
grammar.rst | ||
import.rst | ||
index.rst | ||
introduction.rst | ||
lexical_analysis.rst | ||
simple_stmts.rst | ||
toplevel_components.rst |