mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +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
|
@ -322,7 +322,7 @@ struct _comprehension {
|
|||
|
||||
struct _excepthandler {
|
||||
expr_ty type;
|
||||
expr_ty name;
|
||||
identifier name;
|
||||
asdl_seq *body;
|
||||
int lineno;
|
||||
int col_offset;
|
||||
|
@ -448,8 +448,8 @@ slice_ty ExtSlice(asdl_seq * dims, PyArena *arena);
|
|||
slice_ty Index(expr_ty value, PyArena *arena);
|
||||
comprehension_ty comprehension(expr_ty target, expr_ty iter, asdl_seq * ifs,
|
||||
PyArena *arena);
|
||||
excepthandler_ty excepthandler(expr_ty type, expr_ty name, asdl_seq * body, int
|
||||
lineno, int col_offset, PyArena *arena);
|
||||
excepthandler_ty excepthandler(expr_ty type, identifier name, asdl_seq * body,
|
||||
int lineno, int col_offset, PyArena *arena);
|
||||
arguments_ty arguments(asdl_seq * args, identifier vararg, expr_ty
|
||||
varargannotation, asdl_seq * kwonlyargs, identifier
|
||||
kwarg, expr_ty kwargannotation, asdl_seq * defaults,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue