[issue23035] python -c: Line causing exception not shown for exceptions other than SyntaxErrors
Terry J. Reedy
report at bugs.python.org
Sat Dec 13 03:15:23 CET 2014
Terry J. Reedy added the comment:
One can paste multiple lines, comprising multiple statements, into the console interprer. (Shell only recognizes a single pasted statement.)
I agree, however, that it seems that Python could keep the split version of the input line for the purpose of tracebacks. I just tried
C:\Users\Terry>python -c "import sys; print(sys.argv)"
['-c']
I expected to see to see a list of 3 strings, not 1.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23035>
_______________________________________
More information about the Python-bugs-list
mailing list