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 slebedev
Recipients lys.nikolaou, slebedev
Date 2020-09-23.23:33:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600903982.27.0.474581886877.issue41848@roundup.psfhosted.org>
In-reply-to
Content
Reproducer:

[x for x in [] if lambda: x]

This parses fine in 3.8, but doesn't parse in 3.9 because the grammar expects a disjunction after if in for_if_clause [*]. While this change has zero practical significance, I think it might be useful to maintain a list of such changes for tooling authors (who might need to support multiple Python versions).

[*]: https://github.com/python/cpython/blob/68526fe258da8c01196fd7cf48e8e5f1280bf8fd/Grammar/python.gram#L523
History
Date User Action Args
2020-09-23 23:33:02slebedevsetrecipients: + slebedev, lys.nikolaou
2020-09-23 23:33:02slebedevsetmessageid: <1600903982.27.0.474581886877.issue41848@roundup.psfhosted.org>
2020-09-23 23:33:02slebedevlinkissue41848 messages
2020-09-23 23:33:02slebedevcreate