]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (#94950)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Mon, 18 Jul 2022 21:10:49 +0000 (14:10 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Jul 2022 21:10:49 +0000 (22:10 +0100)
commit0daba822212cd5d6c63384a27f390f0945330c2b
tree8a03ae55dbe6da2d90189b8c6595c6324977cf25
parent73eab9f35ca17c7c3b813c717673934b0ab8ed64
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (#94950)

* gh-94949: Disallow parsing parenthesised ctx manager with old feature_version

* ðŸ“œðŸ¤– Added by blurb_it.

* Allow it with feature_version=(3, 9) as well

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Grammar/python.gram
Lib/test/test_ast.py
Misc/NEWS.d/next/Core and Builtins/2022-07-18-05-10-29.gh-issue-94949.OsZ7_s.rst [new file with mode: 0644]
Parser/parser.c