New submission from Brett Cannon:

When reading 
https://docs.python.org/3/library/traceback.html#traceback.print_exception I 
noticed that everything takes a traceback or a set of exception type, instance, 
and traceback. But since Python 3.0 all of that information is contained in a 
single exception object. So there's no reason to expand the APIs in the 
traceback module that take an exception to just take an exception instance and 
infer the exception type and grab the exception from exception instance itself.

----------
components: Library (Lib)
messages: 260485
nosy: brett.cannon
priority: low
severity: normal
stage: test needed
status: open
title: Expand traceback module API to accept just an exception as an argument
versions: Python 3.6

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

Reply via email to