Issue 1015989: compiler.transformer: correct lineno attribute when possible (original) (raw)

Issue1015989

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:06 admin set github: 40823
2008-03-28 23:38:47 benjamin.peterson set status: open -> closedresolution: out of date
2008-03-28 23:13:33 belopolsky set nosy: + belopolskytype: behaviormessages: +
2004-08-25 14:00:26 syt create