mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
gh-98227: executionmodel.rst: except* can also bind names (GH-98256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 146f168fbf
)
Co-authored-by: BiscuitCandy <70342294+BiscuitCandy@users.noreply.github.com>
This commit is contained in:
parent
be5de50166
commit
f96dbab7d8
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ The following constructs bind names:
|
||||||
|
|
||||||
+ :keyword:`for` loop header,
|
+ :keyword:`for` loop header,
|
||||||
+ after :keyword:`!as` in a :keyword:`with` statement, :keyword:`except`
|
+ after :keyword:`!as` in a :keyword:`with` statement, :keyword:`except`
|
||||||
clause or in the as-pattern in structural pattern matching,
|
clause, :keyword:`except* <except_star>` clause, or in the as-pattern in structural pattern matching,
|
||||||
+ in a capture pattern in structural pattern matching
|
+ in a capture pattern in structural pattern matching
|
||||||
|
|
||||||
* :keyword:`import` statements.
|
* :keyword:`import` statements.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue