From: Benjamin Peterson Date: Fri, 20 Nov 2009 01:16:58 +0000 (+0000) Subject: genexps have linenos X-Git-Tag: v2.7a1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=009b89d22a02af5120e07fb1e8970bf35f45926f;p=python genexps have linenos --- diff --git a/Python/symtable.c b/Python/symtable.c index 40eb866a5c..d782a19547 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1468,7 +1468,7 @@ symtable_visit_genexp(struct symtable *st, expr_ty e) VISIT(st, expr, outermost->iter); /* Create generator scope for the rest */ 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; } st->st_cur->ste_generator = 1;