Message226880
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.
""" |
|
Date |
User |
Action |
Args |
2014-09-14 17:44:33 | terry.reedy | set | recipients:
+ terry.reedy, Aivar.Annamaa, serhiy.storchaka |
2014-09-14 17:44:33 | terry.reedy | set | messageid: <1410716673.59.0.360185197482.issue22384@psf.upfronthosting.co.za> |
2014-09-14 17:44:33 | terry.reedy | link | issue22384 messages |
2014-09-14 17:44:33 | terry.reedy | create | |
|