STINNER Victor added the comment: "The problem is that python throws an ugly-to-read and completly senseless backtrace to the novice (end!) user by default."
Oh ok, I changed the title of the issue. "Backtraces are great for debugging and should be treated as such, but not presented to an end user by default." We may hide the traceback by default or even do not write anything by default, and write the traceback when -v option is used. We may hide the traceback when -q is used. ---------- title: It is impossible to catch sigint on startup in python code -> Don't display traceback when import site is interrupted by CTRL+c _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14228> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com