This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients The Compiler, ZackerySpytz, iritkatriel, pablogsal, terry.reedy, vinay.sajip
Date 2021-02-12.22:24:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613168688.94.0.0583502310695.issue43146@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-02-12 22:24:48terry.reedysetrecipients: + terry.reedy, vinay.sajip, The Compiler, ZackerySpytz, pablogsal, iritkatriel
2021-02-12 22:24:48terry.reedysetmessageid: <1613168688.94.0.0583502310695.issue43146@roundup.psfhosted.org>
2021-02-12 22:24:48terry.reedylinkissue43146 messages
2021-02-12 22:24:48terry.reedycreate