File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,16 @@ slightly different way:
173173 :func: `set_trace ` will enter the debugger immediately, rather than
174174 on the next line of code to be executed.
175175
176- .. function :: post_mortem(traceback=None)
177176
178- Enter post-mortem debugging of the given *traceback * object. If no
179- *traceback * is given, it uses the one of the exception that is currently
180- being handled (an exception must be being handled if the default is to be
181- used).
177+ .. function :: post_mortem(t=None)
182178
179+ Enter post-mortem debugging of the given exception or
180+ :ref: `traceback object <traceback-objects >`. If no value is given, it uses
181+ the exception that is currently being handled, or raises ``ValueError `` if
182+ there isn’t one.
183+
184+ .. versionchanged :: 3.13
185+ Support for exception objects was added.
183186
184187.. function :: pm()
185188
You can’t perform that action at this time.
0 commit comments