Commit a58b255a authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #22243: fix except grammar in reference.

parent 44268702
......@@ -218,7 +218,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`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment