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 iritkatriel
Recipients ezio.melotti, gcewing, hakril, iritkatriel, ncoghlan, vstinner
Date 2021-12-10.22:59:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think this issue was resolved by now. This is what happens on 3.11:

>>> l = ["abc", range(3)]
>>> g = [(yield from i) for i in l]
  File "<stdin>", line 1
SyntaxError: 'yield' inside list comprehension

>>> g2 = ((yield from i) for i in l)
  File "<stdin>", line 1
SyntaxError: 'yield' inside generator expression
Date User Action Args
2021-12-10 22:59:11iritkatrielsetrecipients: + iritkatriel, gcewing, ncoghlan, vstinner, ezio.melotti, hakril
2021-12-10 22:59:11iritkatrielsetmessageid: <>
2021-12-10 22:59:11iritkatriellinkissue21964 messages
2021-12-10 22:59:11iritkatrielcreate