• Serhiy Storchaka's avatar
    bpo-10544: Deprecate "yield" in comprehensions and generator expressions. (GH-4579) · 73a7e9b1
    Serhiy Storchaka yazdı
    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.
    73a7e9b1
Adı
Son kayıt (commit)
Son güncelleme
..
c-api Loading commit data...
data Loading commit data...
distributing Loading commit data...
distutils Loading commit data...
extending Loading commit data...
faq Loading commit data...
howto Loading commit data...
includes Loading commit data...
install Loading commit data...
installing Loading commit data...
library Loading commit data...
reference Loading commit data...
tools Loading commit data...
tutorial Loading commit data...
using Loading commit data...
whatsnew Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
about.rst Loading commit data...
bugs.rst Loading commit data...
conf.py Loading commit data...
contents.rst Loading commit data...
copyright.rst Loading commit data...
docutils.conf Loading commit data...
glossary.rst Loading commit data...
license.rst Loading commit data...
make.bat Loading commit data...