Message386885
It seems to me that print_exception(None), etc, *should* raise something. Printing "NoneType: None\n" makes no sense to me since NoneType is not an exception. In 3.9, it raised TypeError for # of arguments.
I do note that in 3.9
>>> traceback.print_exception(None, None, None)
NoneType: None
I wonder what the rationale was. It isn't because these functions never raise. |
|
Date |
User |
Action |
Args |
2021-02-12 22:24:48 | terry.reedy | set | recipients:
+ terry.reedy, vinay.sajip, The Compiler, ZackerySpytz, pablogsal, iritkatriel |
2021-02-12 22:24:48 | terry.reedy | set | messageid: <1613168688.94.0.0583502310695.issue43146@roundup.psfhosted.org> |
2021-02-12 22:24:48 | terry.reedy | link | issue43146 messages |
2021-02-12 22:24:48 | terry.reedy | create | |
|