mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
genexps have linenos
This commit is contained in:
parent
d16d0abf0b
commit
009b89d22a
1 changed files with 1 additions and 1 deletions
|
@ -1468,7 +1468,7 @@ symtable_visit_genexp(struct symtable *st, expr_ty e)
|
||||||
VISIT(st, expr, outermost->iter);
|
VISIT(st, expr, outermost->iter);
|
||||||
/* Create generator scope for the rest */
|
/* Create generator scope for the rest */
|
||||||
if (!GET_IDENTIFIER(genexpr) ||
|
if (!GET_IDENTIFIER(genexpr) ||
|
||||||
!symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, 0)) {
|
!symtable_enter_block(st, genexpr, FunctionBlock, (void *)e, e->lineno)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
st->st_cur->ste_generator = 1;
|
st->st_cur->ste_generator = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue