Menu

#3 Wrong line number on error output

open
nobody
Parser (1)
5
2009-02-27
2009-02-27
No

The pipper pre-compiler takes the user file, modifies it, and then passes it to Py_CompileString. It passes the path to the original, unmodified, source file path. This means that traceback stack info will be quoting the wrong lines in exception situations.

Possible solution, write the modified file to the tmp dir, then pass that path to Py_CompileString.

Discussion


Log in to post a comment.