You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The normal interactive interpreter doesn't give access to source code, so neither stack_data nor normal tracebacks work well.
The behaviour for a SyntaxError is surprising, I don't know why it's doing that. But it still only seems to happen in the shell which just isn't supported. Running a script like this doesn't show anything similar:
I observe differences when handling different kind of exceptions
In an interactive interpreter:
A simple exception:
(By the way the variable "a" is not shown)
Another kind of exception:
The text was updated successfully, but these errors were encountered: