mirror of
https://github.com/python/cpython.git
synced 2024-12-02 22:35:26 +08:00
Issue #22243: fix except grammar in reference.
This commit is contained in:
parent
004e87048a
commit
65e3ecb3e2
@ -234,7 +234,7 @@ for a group of statements:
|
||||
.. productionlist::
|
||||
try_stmt: try1_stmt | try2_stmt
|
||||
try1_stmt: "try" ":" `suite`
|
||||
: ("except" [`expression` ["as" `target`]] ":" `suite`)+
|
||||
: ("except" [`expression` ["as" `identifier`]] ":" `suite`)+
|
||||
: ["else" ":" `suite`]
|
||||
: ["finally" ":" `suite`]
|
||||
try2_stmt: "try" ":" `suite`
|
||||
|
Loading…
Reference in New Issue
Block a user