summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-08-31 20:42:08 (GMT)
committerGitHub <noreply@github.com>2021-08-31 20:42:08 (GMT)
commit863154c9292e70c5a8a1a3f22ef4ee42e2304281 (patch)
tree494d7e167c6d21600a6db95642af773a1e4eeb46 /Doc/library
parent22fe0eb13c3441b71b60aaea0e7fe289a29783da (diff)
downloadcpython-863154c9292e70c5a8a1a3f22ef4ee42e2304281.zip
cpython-863154c9292e70c5a8a1a3f22ef4ee42e2304281.tar.gz
cpython-863154c9292e70c5a8a1a3f22ef4ee42e2304281.tar.bz2
bpo-31299: make it possible to filter out frames from tracebacks (GH-28067)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/traceback.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index 83d5c8c..7b23049 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -357,7 +357,8 @@ capture data for later printing in a lightweight fashion.
Returns a string for printing one of the frames involved in the stack.
This method gets called for each frame object to be printed in the
- :class:`StackSummary`.
+ :class:`StackSummary`. If it returns ``None``, the frame is omitted
+ from the output.
.. versionadded:: 3.11