summaryrefslogtreecommitdiffstats
path: root/Doc/library/traceback.rst
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2013-09-15 22:15:56 (GMT)
committerAndrew Kuchling <amk@amk.ca>2013-09-15 22:15:56 (GMT)
commit173a157e725579eec1f28f8c9d53d6761ba6c79f (patch)
tree98be7afea0a4f929f07193d94ffe86cc0e7739e0 /Doc/library/traceback.rst
parent8408dc581e2baaa306b57f14486cfa013fd68c68 (diff)
downloadcpython-173a157e725579eec1f28f8c9d53d6761ba6c79f.zip
cpython-173a157e725579eec1f28f8c9d53d6761ba6c79f.tar.gz
cpython-173a157e725579eec1f28f8c9d53d6761ba6c79f.tar.bz2
#1565525: Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r--Doc/library/traceback.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index 0533bea..b68a8f1 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -129,6 +129,13 @@ The module defines the following functions:
A shorthand for ``format_list(extract_stack(f, limit))``.
+.. function:: clear_frames(tb)
+
+ Clears the local variables of all the stack frames in a traceback *tb*
+ by calling the :meth:`clear` method of each frame object.
+
+ .. versionadded:: 3.4
+
.. _traceback-example: