Terry J. Reedy <tjre...@udel.edu> added the comment:

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.

----------
nosy: +terry.reedy

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

Reply via email to