Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
Loading