[Patches] [ python-Patches-1015989 ] compiler.transformer: correct lineno attribute when possible

SourceForge.net noreply at sourceforge.net
Mon Nov 1 14:02:29 CET 2004


Patches item #1015989, was opened at 2004-08-25 16:00
Message generated for change (Comment added) made by felixwiemann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1015989&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thenault Sylvain (syt)
Assigned to: Jeremy Hylton (jhylton)
Summary: compiler.transformer: correct lineno attribute when possible

Initial Comment:
this patch try to fix the lineno attribute of some ast
nodes whenever possible.  I'm not sure this patch fix
all relevant cases, but at least it fixes the most
obvious ones. I would like to have at the end a correct
line number on every nodes but Module (some program
such as Pylint are using this package and need to have
this information correctly).

A test module is also joined.



----------------------------------------------------------------------

Comment By: Felix Wiemann (felixwiemann)
Date: 2004-11-01 14:02

Message:
Logged In: YES 
user_id=1014490

This patch seems to have been applied in rev. 1.45 of
transformer.py. However, there is a problem, see #1057835.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1015989&group_id=5470


More information about the Patches mailing list