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
When running ptpython -i file.py, if an error occurs, ptpython currently prints the error and exits. This differs from the behaviour of python -i file.py, which prints the traceback and then opens the REPL, preserving the variables of file.py up to the point where the error occurred.
This would be especially useful because I can fix whatever error occurred, then manually continue execution using the script variables (which could be loaded from slow functions like API requests).
Note: I'm using ptpython version 3.0.23
The text was updated successfully, but these errors were encountered:
When running
ptpython -i file.py
, if an error occurs,ptpython
currently prints the error and exits. This differs from the behaviour ofpython -i file.py
, which prints the traceback and then opens the REPL, preserving the variables of file.py up to the point where the error occurred.This would be especially useful because I can fix whatever error occurred, then manually continue execution using the script variables (which could be loaded from slow functions like API requests).
Note: I'm using
ptpython
version 3.0.23The text was updated successfully, but these errors were encountered: