Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 73a7e9b10b2ec9636e3c6396cf7b3695f8ed1856 authored by Serhiy Storchaka on 01 December 2017, 04:54:17 UTC, committed by Nick Coghlan on 01 December 2017, 04:54:17 UTC
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.
1 parent 6a89481
Tip revision: 73a7e9b10b2ec9636e3c6396cf7b3695f8ed1856 authored by Serhiy Storchaka on 01 December 2017, 04:54:17 UTC
bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579)
bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579)
Tip revision: 73a7e9b
.gitattributes
# Binary data types
*.aif binary
*.aifc binary
*.aiff binary
*.au binary
*.bmp binary
*.exe binary
*.icns binary
*.gif binary
*.ico binary
*.jpg binary
*.pck binary
*.png binary
*.psd binary
*.tar binary
*.wav binary
*.whl binary
*.zip binary
# Specific binary files
Lib/test/sndhdrdata/sndhdr.* binary
# Text files that should not be subject to eol conversion
Lib/test/cjkencodings/* -text
Lib/test/decimaltestdata/*.decTest -text
Lib/test/test_email/data/*.txt -text
Lib/test/xmltestdata/* -text
Lib/test/coding20731.py -text
# CRLF files
*.bat text eol=crlf
*.ps1 text eol=crlf
*.sln text eol=crlf
*.vcxproj* text eol=crlf
*.props text eol=crlf
*.proj text eol=crlf
PCbuild/readme.txt text eol=crlf
PC/readme.txt text eol=crlf
Computing file changes ...