This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: compiler.transformer: correct lineno attribute when possible
Type: behavior Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: jhylton Nosy List: belopolsky, felixwiemann, jhylton, syt
Priority: normal Keywords: patch

Created on 2004-08-25 14:00 by syt, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
transformer.py.patch syt, 2004-08-25 14:00 patch for the compiler.transformer module
test_compiler.py syt, 2004-08-25 14:01 the test module
Messages (3)
msg46785 - (view) Author: Thenault Sylvain (syt) Date: 2004-08-25 14:00
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.

msg46786 - (view) Author: Felix Wiemann (felixwiemann) Date: 2004-11-01 13:02
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.
msg64656 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2008-03-28 23:13
This patch was applied at r37285 (in svn terms).  It looks like closing 
this issue  was blocked by #1057835 which was deemed unrelated and 
resolved in any case.

I suggest to close this issue.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40823
2008-03-28 23:38:47benjamin.petersonsetstatus: open -> closed
resolution: out of date
2008-03-28 23:13:33belopolskysetnosy: + belopolsky
type: behavior
messages: + msg64656
2004-08-25 14:00:26sytcreate