diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-11-05 22:18:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 22:18:44 (GMT) |
commit | 91e93794d5dd1aa91fbe142099c2955e0c4c1660 (patch) | |
tree | df0294cde2ffeabdb5fcbdc2107712fe1fd2b117 /Misc | |
parent | dc42af8fd16b10127ce1fc93c13bc1bfd2674aa2 (diff) | |
download | cpython-91e93794d5dd1aa91fbe142099c2955e0c4c1660.zip cpython-91e93794d5dd1aa91fbe142099c2955e0c4c1660.tar.gz cpython-91e93794d5dd1aa91fbe142099c2955e0c4c1660.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-10-08-23-51-55.bpo-26389.uga44e.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-10-08-23-51-55.bpo-26389.uga44e.rst b/Misc/NEWS.d/next/Library/2020-10-08-23-51-55.bpo-26389.uga44e.rst new file mode 100644 index 0000000..a721a0d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-10-08-23-51-55.bpo-26389.uga44e.rst @@ -0,0 +1,4 @@ +The :func:`traceback.format_exception`, +:func:`traceback.format_exception_only`, and +:func:`traceback.print_exception` functions can now take an exception object +as a positional-only argument. |