]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-94950)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 18 Jul 2022 21:57:45 +0000 (14:57 -0700)
committerGitHub <noreply@github.com>
Mon, 18 Jul 2022 21:57:45 +0000 (14:57 -0700)
commit7733aa048e74a7caee9afed9be95d070c432f7e9
treec33d564e6da64d79c7720c723439d8cfe6a00d68
parentbe84daf52aec7b963a743d0c2d66dbd175810803
gh-94949: Disallow parsing parenthesised ctx mgr with old feature_version (GH-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>
(cherry picked from commit 0daba822212cd5d6c63384a27f390f0945330c2b)

Co-authored-by: Shantanu <12621235+hauntsaninja@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