This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Inyeol.Lee, Jim Fasarakis-Hilliard, belopolsky, benjamin.peterson, danielsh, emptysquare, erickt, esc24, georg.brandl, glyph, gvanrossum, ncoghlan, rhettinger, serhiy.storchaka, yselivanov
Date 2017-11-27.11:20:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Note that the DeprecationWarning exception is replaced with a SyntaxError to get a more accurate error report.

$ cat 
def f():
    return ((yield x) for x in range(3))

$ ./python -Wd DeprecationWarning: 'yield' inside generator expression
  return ((yield x) for x in range(3))

$ ./python -We
  File "", line 2
    return ((yield x) for x in range(3))
SyntaxError: 'yield' inside generator expression

Without this replacement the result would be:

$ ./python -We
DeprecationWarning: 'yield' inside generator expression
Date User Action Args
2017-11-27 11:20:19serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, georg.brandl, rhettinger, ncoghlan, belopolsky, benjamin.peterson, erickt, glyph, Inyeol.Lee, yselivanov, esc24, danielsh, emptysquare, Jim Fasarakis-Hilliard
2017-11-27 11:20:19serhiy.storchakasetmessageid: <>
2017-11-27 11:20:19serhiy.storchakalinkissue10544 messages
2017-11-27 11:20:19serhiy.storchakacreate