summaryrefslogtreecommitdiffstats
path: root/Doc/library/traceback.rst
diff options
context:
space:
mode:
authorSimon-Martin Schröder <martin.schroeder@nerdluecht.de>2022-07-11 09:14:15 (GMT)
committerGitHub <noreply@github.com>2022-07-11 09:14:15 (GMT)
commit46fc584b00f2ccee5b77d8fc525881def8670a02 (patch)
treed8b899911c740c27a46423686b444870cbfc1e90 /Doc/library/traceback.rst
parentda717519ecd17bf6c7ed334c12ff861f63b0f14f (diff)
downloadcpython-46fc584b00f2ccee5b77d8fc525881def8670a02.zip
cpython-46fc584b00f2ccee5b77d8fc525881def8670a02.tar.gz
cpython-46fc584b00f2ccee5b77d8fc525881def8670a02.tar.bz2
gh-87822: Make traceback module robust to exceptions from repr() of local values (GH-94691)
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r--Doc/library/traceback.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index a8412cc..8cb6af9 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -341,6 +341,10 @@ capture data for later printing in a lightweight fashion.
local variables in each :class:`FrameSummary` are captured as object
representations.
+ .. versionchanged:: 3.12
+ Exceptions raised from :func:`repr` on a local variable (when
+ *capture_locals* is ``True``) are no longer propagated to the caller.
+
.. classmethod:: from_list(a_list)
Construct a :class:`StackSummary` object from a supplied list of