diff Python/symtable.c @ 57375:137115e395d8 legacy-trunk

genexps have linenos
author Benjamin Peterson <benjamin@python.org>
date Fri, 20 Nov 2009 01:16:58 +0000
parents 6e370013f3a0
children c2fdf25329ff
line wrap: on
line diff
--- a/Python/symtable.c	Fri Nov 20 01:15:53 2009 +0000
+++ b/Python/symtable.c	Fri Nov 20 01:16:58 2009 +0000
@@ -1468,7 +1468,7 @@
 	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;