https://github.com/python/cpython/commit/1b39b502d33c68f52fd775c4e6c2174baddd40bd
commit: 1b39b502d33c68f52fd775c4e6c2174baddd40bd
branch: main
author: Adam Johnson <[email protected]>
committer: gaogaotiantian <[email protected]>
date: 2025-01-10T10:54:45-05:00
summary:

gh-128409: Document that pdb.post_mortem() accepts exceptions (#128410)

Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/pdb.rst

diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 6c099b22b38c21..f9d1213fb6d29d 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()
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to