STINNER Victor added the comment: > This means there's an unexpected gotcha
I prefer to see an exception before sys.stderr is None, instead of not seeing the traceback when the application does crash. It is usually a pain to reproduce a crash in the exact same conditions. > if I want my application to still run under Windows when the user has changed > the default, I first have to check sys.stderr before enabling faulthandler. Exactly. It's not really specific to Windows, you may also have sys.stderr on UNIX in some cases. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21497> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com