summaryrefslogtreecommitdiffstats
path: root/Doc/library/traceback.rst
diff options
context:
space:
mode:
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 e938dd5..bd53bc0 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -271,6 +271,13 @@ capture data for later printing in a lightweight fashion.
Note that when locals are captured, they are also shown in the traceback.
+ .. method:: print(*, file=None, chain=True)
+
+ Print to *file* (default ``sys.stderr``) the exception information returned by
+ :meth:`format`.
+
+ .. versionadded:: 3.11
+
.. method:: format(*, chain=True)
Format the exception.