Skip to content

Commit

Permalink
pythongh-128409: Document that pdb.post_mortem() accepts exceptions (p…
Browse files Browse the repository at this point in the history
…ython#128410)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
  • Loading branch information
adamchainz and StanFromIreland authored Jan 10, 2025
1 parent 802556a commit 1b39b50
Showing 1 changed file with 7 additions and 5 deletions.
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

0 comments on commit 1b39b50

Please sign in to comment.