summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-11-30 22:37:04 (GMT)
committerGitHub <noreply@github.com>2021-11-30 22:37:04 (GMT)
commit8a45ca542a65ea27e7acaa44a4c833a27830e796 (patch)
tree8cc5563159c3c11b88d0f9c9b9164ed21a9d9e7f /Doc/reference
parentaf8c8caaf5e07c02202d736a31f6a2f7e27819b8 (diff)
downloadcpython-8a45ca542a65ea27e7acaa44a4c833a27830e796.zip
cpython-8a45ca542a65ea27e7acaa44a4c833a27830e796.tar.gz
cpython-8a45ca542a65ea27e7acaa44a4c833a27830e796.tar.bz2
bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (GH-29780)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/simple_stmts.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index bb1209d..3d02074 100644
--- a/Doc/reference/simple_stmts.rst
+++ b/Doc/reference/simple_stmts.rst
@@ -655,6 +655,12 @@ and information about handling exceptions is in section :ref:`try`.
The ``__suppress_context__`` attribute to suppress automatic display of the
exception context.
+.. versionchanged:: 3.11
+ If the traceback of the active exception is modified in an :keyword:`except`
+ clause, a subsequent ``raise`` statement re-raises the exception with the
+ modified traceback. Previously, the exception was re-raised with the
+ traceback it had when it was caught.
+
.. _break:
The :keyword:`!break` statement