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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamchainz
Copy link
Contributor

@adamchainz adamchainz commented Jan 2, 2025


Enter post-mortem debugging of the given *traceback* object. If no
*traceback* is given, it uses the one of the exception that is currently
Enter post-mortem debugging of the given exception or traceback object. If
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's a good idea to linkify things here (e.g. "traceback" goes to https://docs.python.org/3/reference/datamodel.html#traceback-objects).

Enter post-mortem debugging of the given *traceback* object. If no
*traceback* is given, it uses the one of the exception that is currently
Enter post-mortem debugging of the given exception or traceback object. If
no value is given, it uses the one of the exception that is currently
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
no value is given, it uses the one of the exception that is currently
no value is given, it uses the one of the exceptions that is currently

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will reword slightly differently.

Doc/library/pdb.rst Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review docs Documentation in the Doc dir needs backport to 3.13 bugs and security fixes skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Document pdb.post_mortem() accepts exceptions on Python 3.13+
3 participants