Issue477490

classification
Title: Setting initial line number in compile()
Type: rfe Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: bckfnn, zyasoft
Priority: normal Keywords:

Created on 2001-11-02.11:11:51 by bckfnn, last changed 2008-09-14.02:08:17 by zyasoft.

Messages
msg3004 (view) Author: Finn Bock (bckfnn) Date: 2001-11-02.11:11:51
It would be a nice feature to be able to specify the 
initial line number of a codeblock sent to 
__nuiltin__.compile(). If the code block was part of a 
bigger file, it really should be possible to get 
stacktraces and exception with linenumbers that 
matches in position in the file. Right now the 
traceback linenumbers are always relative to the 
codeblock.

If this is added, the BSF engine should also be update 
to take advantage of it.
msg3579 (view) Author: Jim Baker (zyasoft) Date: 2008-09-14.02:08:17
Not part of the compile function.

But with support of 2.6's ast module, we can do arbitrary line number
fixup, so this requires can be accommodated if desired.
History
Date User Action Args
2008-09-14 02:08:17zyasoftsetstatus: open -> closed
resolution: wont fix
messages: + msg3579
nosy: + zyasoft
2001-11-02 11:11:51bckfnncreate