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

Mailing List Archive: Python: Checkins

r76423 - 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 (148 views)
Permalink
r76423 - python/trunk/Python/symtable.c

Author: benjamin.peterson
Date: Fri Nov 20 02:15:53 2009
New Revision: 76423

Log:
provide line number for lambdas

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:15:53 2009
@@ -1193,9 +1193,8 @@
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);
_______________________________________________
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.