mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Some more changes related to the new except syntax and semantics,
by Collin Winter.
This commit is contained in:
parent
b940e113bf
commit
16be03e4a2
10 changed files with 46 additions and 32 deletions
|
@ -79,7 +79,7 @@ try_stmt: ('try' ':' suite
|
|||
with_stmt: 'with' test [ with_var ] ':' suite
|
||||
with_var: 'as' expr
|
||||
# NB compile.c makes sure that the default except clause is last
|
||||
except_clause: 'except' [test ['as' test]]
|
||||
except_clause: 'except' [test ['as' NAME]]
|
||||
suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
|
||||
|
||||
# Backward compatibility cruft to support:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue