summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2021-07-16 12:21:16 (GMT)
committerGitHub <noreply@github.com>2021-07-16 12:21:16 (GMT)
commit8ce3008585feed51bd08ec256a19923940d744d4 (patch)
treeea35281e31dbf3b9a8c14772cc920a1b941dc310 /Doc
parenta283ef116ba909f133a8e16bb8d17d9e613831d8 (diff)
downloadcpython-8ce3008585feed51bd08ec256a19923940d744d4.zip
cpython-8ce3008585feed51bd08ec256a19923940d744d4.tar.gz
cpython-8ce3008585feed51bd08ec256a19923940d744d4.tar.bz2
bpo-44569: Decouple frame formatting in traceback.py (GH-27038)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/traceback.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index be1f43e..83d5c8c 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -353,6 +353,14 @@ capture data for later printing in a lightweight fashion.
.. versionchanged:: 3.6
Long sequences of repeated frames are now abbreviated.
+ .. method:: format_frame(frame)
+
+ 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`.
+
+ .. versionadded:: 3.11
+
:class:`FrameSummary` Objects
-----------------------------