cpython/Doc/reference
Serhiy Storchaka 73a7e9b10b bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579)
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.
2017-12-01 14:54:17 +10:00
..
compound_stmts.rst Remove redundant 'exc = True' line (GH-4357) 2017-11-11 17:55:05 +03:00
datamodel.rst bpo-31709: Drop support for asynchronous __aiter__. (#3903) 2017-10-06 02:08:57 -04:00
executionmodel.rst bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail (GH-1725) 2017-05-22 14:09:55 -07:00
expressions.rst bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579) 2017-12-01 14:54:17 +10:00
grammar.rst Merged revisions 65378-65379,65430 via svnmerge from 2008-08-03 09:47:27 +00:00
import.rst Fix a grammatical problem and reword for clarity. (#4257) 2017-11-03 13:45:46 -07:00
index.rst Merge from 3.2: remove unneeded "Release" and "Date" markers from index pages. 2012-10-28 11:10:24 -07:00
introduction.rst Python for .NET has moved to Github. 2016-02-03 22:05:46 -06:00
lexical_analysis.rst bpo-31810: added missing keywords to docs. (#4140) 2017-11-08 12:31:26 -05:00
simple_stmts.rst Fix typo in Simple Statements documentation (GH-3809) 2017-09-28 12:54:48 -07:00
toplevel_components.rst #22613: remaining corrections in extending/reference docs (thanks Jacques Ducasse) 2014-10-31 10:38:49 +01:00