summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2025-01-10 15:54:45 (GMT)
committerGitHub <noreply@github.com>2025-01-10 15:54:45 (GMT)
commit1b39b502d33c68f52fd775c4e6c2174baddd40bd (patch)
tree720826f3fd1d67e00c746879ac20377a6546d6b8 /Doc/library
parent802556abfa008abe0bdd78e6f9e18bef71db90c1 (diff)
downloadcpython-1b39b502d33c68f52fd775c4e6c2174baddd40bd.zip
cpython-1b39b502d33c68f52fd775c4e6c2174baddd40bd.tar.gz
cpython-1b39b502d33c68f52fd775c4e6c2174baddd40bd.tar.bz2
gh-128409: Document that pdb.post_mortem() accepts exceptions (#128410)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/pdb.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 6c099b2..f9d1213 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -179,13 +179,15 @@ slightly different way:
.. versionadded:: 3.14
The *commands* argument.
-.. function:: post_mortem(traceback=None)
+.. function:: post_mortem(t=None)
- Enter post-mortem debugging of the given *traceback* object. If no
- *traceback* is given, it uses the one of the exception that is currently
- being handled (an exception must be being handled if the default is to be
- used).
+ Enter post-mortem debugging of the given exception or
+ :ref:`traceback object <traceback-objects>`. If no value is given, it uses
+ the exception that is currently being handled, or raises ``ValueError`` if
+ there isn’t one.
+ .. versionchanged:: 3.13
+ Support for exception objects was added.
.. function:: pm()