summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-22 23:00:58 (GMT)
committerGitHub <noreply@github.com>2019-05-22 23:00:58 (GMT)
commitdf22c03b93ea4620fdf4a0b3cbbbfa7c645af783 (patch)
tree87a86340ef143d19350e9f52b18d4f28f0a982b7 /Misc
parent5edcf263581c70f6a6c2206db679e51e9418bb38 (diff)
downloadcpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.zip
cpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.tar.gz
cpython-df22c03b93ea4620fdf4a0b3cbbbfa7c645af783.tar.bz2
bpo-36829: PyErr_WriteUnraisable() normalizes exception (GH-13507)
PyErr_WriteUnraisable() now creates a traceback object if there is no current traceback. Moreover, call PyErr_NormalizeException() and PyException_SetTraceback() to normalize the exception value. Ignore silently any error.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2019-05-22-23-01-29.bpo-36829.MfOcUg.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-05-22-23-01-29.bpo-36829.MfOcUg.rst b/Misc/NEWS.d/next/Core and Builtins/2019-05-22-23-01-29.bpo-36829.MfOcUg.rst
new file mode 100644
index 0000000..957a485
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-05-22-23-01-29.bpo-36829.MfOcUg.rst
@@ -0,0 +1,4 @@
+:c:func:`PyErr_WriteUnraisable` now creates a traceback object if there is
+no current traceback. Moreover, call :c:func:`PyErr_NormalizeException` and
+:c:func:`PyException_SetTraceback` to normalize the exception value. Ignore any
+error.