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 martin.panter
Recipients brett.cannon, martin.panter, terry.reedy
Date 2016-02-20.05:12:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is precedent with Python 2’s “raise” statement for accepting an exception instance for the first parameter (where an exception class would otherwise be passed). Also, generator.throw() supports this; see Issue 14911 for clarifying its documentation.

I would support changing the following signatures so that the first parameter could hold the value, not just the type:

print_exception(etype, value=None, tb=None, limit=None, ...)
format_exception_only(etype, value=None)
format_exception(etype, value=None, tb=None, limit=None, ...)
TracebackException(exc_type, exc_value=None, exc_traceback=None, *, ...)
Date User Action Args
2016-02-20 05:12:44martin.pantersetrecipients: + martin.panter, brett.cannon, terry.reedy
2016-02-20 05:12:44martin.pantersetmessageid: <>
2016-02-20 05:12:44martin.panterlinkissue26389 messages
2016-02-20 05:12:44martin.pantercreate