-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.11] gh-115881: Ensure
ast.parse()
parses conditional context man…
- Loading branch information
1 parent
35a43d4
commit a30a1e7
Showing
4 changed files
with
10 additions
and
10 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
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.