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-103023: Add SyntaxError check in pdb's display command #103024

Merged
merged 7 commits into from
Mar 27, 2023

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented Mar 25, 2023

In this PR, extra stuff was cleaned up a bit:

  1. sys.exc_info() is no longer needed now that format_exception_only supported exception object directly.
  2. A clearer message is sent to the users when no expression is being displayed

Lib/pdb.py Outdated Show resolved Hide resolved
Lib/pdb.py Outdated Show resolved Hide resolved
Lib/pdb.py Outdated Show resolved Hide resolved
@ambv ambv merged commit 3606753 into python:main Mar 27, 2023
@gaogaotiantian gaogaotiantian deleted the display-syntax-error branch March 27, 2023 21:16
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants