]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-26389: Allow passing an exception object in the traceback module (GH-22610)
authorZackery Spytz <zspytz@gmail.com>
Thu, 5 Nov 2020 22:18:44 +0000 (15:18 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 22:18:44 +0000 (22:18 +0000)
commit91e93794d5dd1aa91fbe142099c2955e0c4c1660
treedf0294cde2ffeabdb5fcbdc2107712fe1fd2b117
parentdc42af8fd16b10127ce1fc93c13bc1bfd2674aa2
bpo-26389: Allow passing an exception object in the traceback module (GH-22610)

The format_exception(), format_exception_only(), and
print_exception() functions can now take an exception object as a positional-only argument.

Co-Authored-By: Matthias Bussonnier <bussonniermatthias@gmail.com>
Doc/library/traceback.rst
Doc/whatsnew/3.10.rst
Lib/test/test_traceback.py
Lib/traceback.py
Misc/NEWS.d/next/Library/2020-10-08-23-51-55.bpo-26389.uga44e.rst [new file with mode: 0644]