cpython/Doc/whatsnew
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
..
2.0.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.1.rst Merge doc fixes from 3.5 2017-01-14 09:54:57 +00:00
2.2.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.3.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.4.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.5.rst Avoid line breaks after hyphens, otherwise they are turned into spaces 2017-01-14 08:24:20 +00:00
2.6.rst bpo-30737: Update DevGuide links to new URL (GH-3228) 2017-08-30 09:37:43 -07:00
2.7.rst Issue #28763: Use double hyphens (rendered as en-dashes) in numerical ranges 2016-11-26 13:43:28 +02:00
3.0.rst Issue #26638: Mask undefined CLI options to defeat new Sphinx warnings 2016-10-30 04:20:17 +00:00
3.1.rst Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
3.2.rst bpo-27200: Fix several doctests (GH-604) 2017-04-27 15:23:34 +03:00
3.3.rst Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
3.4.rst bpo-30737: Update DevGuide links to new URL (GH-3228) 2017-08-30 09:37:43 -07:00
3.5.rst bpo-28814: Undeprecate inadvertently deprecated inspect functions. (#122) 2017-02-22 08:45:51 +03:00
3.6.rst bpo-29898: Fix incorrect env variable name (GH-1576) 2017-05-16 12:36:45 +03:00
3.7.rst bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579) 2017-12-01 14:54:17 +10:00
changelog.rst Include additional changes to support blurbified NEWS (#3340) 2017-09-05 00:46:18 -07:00
index.rst bpo-31458: Clarify that Changelog is built from Misc/NEWS.d directory (GH-3617) 2017-09-16 10:43:30 -07:00