Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e3ecb

Browse files
committed
Issue #22243: fix except grammar in reference.
1 parent 004e870 commit 65e3ecb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/reference/compound_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ for a group of statements:
234234
.. productionlist::
235235
try_stmt: try1_stmt | try2_stmt
236236
try1_stmt: "try" ":" `suite`
237-
: ("except" [`expression` ["as" `target`]] ":" `suite`)+
237+
: ("except" [`expression` ["as" `identifier`]] ":" `suite`)+
238238
: ["else" ":" `suite`]
239239
: ["finally" ":" `suite`]
240240
try2_stmt: "try" ":" `suite`

0 commit comments

Comments
 (0)