TenjintShell.showsyntaxerror¶
-
TenjintShell.
showsyntaxerror
(filename=None, running_compiled_code=False)¶ Display the syntax error that just occurred.
This doesn’t display a stack trace because there isn’t one.
If a filename is given, it is stuffed in the exception instead of what was there before (because Python’s parser always uses “<string>” when reading from a string).
If the syntax error occurred when running a compiled code (i.e. running_compile_code=True), longer stack trace will be displayed.