mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
unify TryExcept and TryFinally (closes #12199)
This commit is contained in:
parent
f7d08e8522
commit
43af12b0b4
8 changed files with 78 additions and 156 deletions
|
|
@ -31,8 +31,7 @@ module Python
|
|||
| With(withitem* items, stmt* body)
|
||||
|
||||
| Raise(expr? exc, expr? cause)
|
||||
| TryExcept(stmt* body, excepthandler* handlers, stmt* orelse)
|
||||
| TryFinally(stmt* body, stmt* finalbody)
|
||||
| Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)
|
||||
| Assert(expr test, expr? msg)
|
||||
|
||||
| Import(alias* names)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue