[issue23035] python -c: Line causing exception not shown for exceptions other than SyntaxErrors
STINNER Victor
report at bugs.python.org
Fri Dec 12 13:28:41 CET 2014
STINNER Victor added the comment:
SyntaxError exceptions have a text attribute which contains the line where the error occurred. It's really a special case. For other exceptions, Python only knows that the error occurred in the file called "<string>".
Being able to display the line for any exception requires a complex development. I'm not interested to implement it, I don't think that it's very useful (compared to the time needed to develop it).
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23035>
_______________________________________
More information about the Python-bugs-list
mailing list