diff options
author | Irit Katriel <iritkatriel@yahoo.com> | 2021-01-15 02:45:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 18:45:02 -0800 |
commit | 4c94d74152a511d977fe26a4f3a32b7352ba9024 (patch) | |
tree | cc0cb73d6512b874ae0886ee94aa0acce1c54488 /Misc | |
parent | bpo-42827: Fix crash on SyntaxError in multiline expressions (GH-24140) (diff) | |
download | cpython-4c94d74152a511d977fe26a4f3a32b7352ba9024.tar.gz cpython-4c94d74152a511d977fe26a4f3a32b7352ba9024.tar.bz2 cpython-4c94d74152a511d977fe26a4f3a32b7352ba9024.zip |
bpo-42877: add the 'compact' param to TracebackException's __init__ (#24179)
Use it to reduce the time and memory taken up by several of traceback's module-level functions.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-01-13-12-55-41.bpo-42877.Fi1zEG.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-01-13-12-55-41.bpo-42877.Fi1zEG.rst b/Misc/NEWS.d/next/Library/2021-01-13-12-55-41.bpo-42877.Fi1zEG.rst new file mode 100644 index 00000000000..49bb74bc536 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-01-13-12-55-41.bpo-42877.Fi1zEG.rst @@ -0,0 +1,4 @@ +Added the ``compact`` parameter to the constructor of +:class:`traceback.TracebackException` to reduce time and memory +for use cases that only need to call :func:`TracebackException.format` +and :func:`TracebackException.format_exception_only`. |