mirror of https://github.com/python/cpython
provide line number for lambdas
This commit is contained in:
parent
48f0a8df19
commit
d16d0abf0b
|
@ -1193,9 +1193,8 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
|
|||
return 0;
|
||||
if (e->v.Lambda.args->defaults)
|
||||
VISIT_SEQ(st, expr, e->v.Lambda.args->defaults);
|
||||
/* XXX how to get line numbers for expressions */
|
||||
if (!symtable_enter_block(st, lambda,
|
||||
FunctionBlock, (void *)e, 0))
|
||||
FunctionBlock, (void *)e, e->lineno))
|
||||
return 0;
|
||||
VISIT_IN_BLOCK(st, arguments, e->v.Lambda.args, (void*)e);
|
||||
VISIT_IN_BLOCK(st, expr, e->v.Lambda.body, (void*)e);
|
||||
|
|
Loading…
Reference in New Issue