Terry J. Reedy added the comment:

Since traceback.print_exception already uses print statememts, your patch *is* 
sufficient to trap the remaining stderr exception. Go ahead.

The doctring for report_callback_exception calls it an 'internal function'.  To 
me, that implies 'ignore this' rather than 'override this'.  I suggest changing 
the docstring to

"""Report callback exception on sys.stderr.

Applications may want to override this internal function, and should when 
sys.stderr is None.
"""

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22384>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to