From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 15 Oct 2022 16:12:18 +0000 (-0700) Subject: gh-98227: executionmodel.rst: except* can also bind names (GH-98256) X-Git-Tag: v3.11.0~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f96dbab7d8f87525bfd2ce10a8d960535334b637;p=thirdparty%2FPython%2Fcpython.git gh-98227: executionmodel.rst: except* can also bind names (GH-98256) Co-authored-by: Jelle Zijlstra (cherry picked from commit 146f168fbf5b239158922f4defd494088c381525) Co-authored-by: BiscuitCandy <70342294+BiscuitCandy@users.noreply.github.com> --- diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst index d9183561820b..3f01180e13f7 100644 --- a/Doc/reference/executionmodel.rst +++ b/Doc/reference/executionmodel.rst @@ -67,7 +67,7 @@ The following constructs bind names: + :keyword:`for` loop header, + after :keyword:`!as` in a :keyword:`with` statement, :keyword:`except` - clause or in the as-pattern in structural pattern matching, + clause, :keyword:`except* ` clause, or in the as-pattern in structural pattern matching, + in a capture pattern in structural pattern matching * :keyword:`import` statements.