Document pdb.post_mortem()
accepts exceptions on Python 3.13+
#128409
Labels
docs
Documentation in the Doc dir
pdb.post_mortem()
accepts exceptions on Python 3.13+
#128409
Documentation
Some change in Python 3.13 (maybe 5f3433f or related) allows
pdb.post_mortem()
to accept an exception object, as well as a traceback object. This could be useful to use for chained exception access, for example in Django’s test runner where a traceback is currently passed, but the exception with chained causes is available.Tested with:
and ran with:
Linked PRs
The text was updated successfully, but these errors were encountered: