Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

r76424 - python/trunk/Python/symtable.c

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Nov 19, 2009, 6:20 PM

Post #1 of 1 (146 views)
Permalink
r76424 - python/trunk/Python/symtable.c

Author: benjamin.peterson
Date: Fri Nov 20 02:16:58 2009
New Revision: 76424

Log:
genexps have linenos

Modified:
python/trunk/Python/symtable.c

Modified: python/trunk/Python/symtable.c
==============================================================================
--- python/trunk/Python/symtable.c (original)
+++ python/trunk/Python/symtable.c Fri Nov 20 02:16:58 2009
@@ -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;
_______________________________________________
Python-checkins mailing list
Python-checkins [at] python
http://mail.python.org/mailman/listinfo/python-checkins

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.