Fix the grammar, with Reinhold's approval.
This commit is contained in:
parent
b8122feb32
commit
cd4723bc31
13
pep-0341.txt
13
pep-0341.txt
|
@ -81,11 +81,14 @@ Changes to the grammar
|
|||
|
||||
would have to become
|
||||
|
||||
try_stmt: ('try' ':' suite (except_clause ':' suite)+
|
||||
['else' ':' suite] ['finally' ':' suite] |
|
||||
'try' ':' suite (except_clause ':' suite)*
|
||||
['else' ':' suite] 'finally' ':' suite)
|
||||
|
||||
try_stmt: 'try' ':' suite
|
||||
(
|
||||
(except_clause ':' suite)+
|
||||
['else' ':' suite]
|
||||
['finally' ':' suite]
|
||||
|
|
||||
'finally' ':' suite
|
||||
)
|
||||
|
||||
Implementation
|
||||
|
||||
|
|
Loading…
Reference in New Issue