Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-115881: Ensure
ast.parse()
parses conditional context managers e…
…ven with low `feature_version` passed (#115920)
- Loading branch information
1 parent
8e8ab75
commit 7a3518e
Showing
5 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2024-02-25-19-20-05.gh-issue-115881.ro_Kuw.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fix issue where :func:`ast.parse` would incorrectly flag conditional context | ||
managers (such as ``with (x() if y else z()): ...``) as invalid syntax if | ||
``feature_version=(3, 8)`` was passed. This reverts changes to the | ||
grammar made as part of gh-94949. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.