[issue14228] Don't display traceback when import site is interrupted by CTRL+c

STINNER Victor report at bugs.python.org
Sat Dec 21 16:44:17 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue14228>
_______________________________________


More information about the Python-bugs-list mailing list