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
bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from repr
#18180
Conversation
Lib/pdb.py
Outdated
| try: | ||
| val = self._getval(arg) | ||
| except: | ||
| return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth a comment that getval already emitted an error
|
This looks to me like a bugfix and seems safe to backport to 3.9 and 3.8. Clearly the intention was to just catch the exception from |
|
If you want to schedule another build, you need to add the " |
repr with do_p/do_pppdb's do_p/do_pp commands swallow exceptions from repr
|
Irit, you can manage this by yourself, right? |
Yes. Just waiting for the bot to finish. |
|
Thanks @blueyed for the PR, and @iritkatriel for merging it |
|
GH-26650 is a backport of this pull request to the 3.10 branch. |
… from repr (pythonGH-18180) (cherry picked from commit 6544b25) Co-authored-by: Daniel Hahler <git@thequod.de>
|
GH-26651 is a backport of this pull request to the 3.9 branch. |
… from repr (pythonGH-18180) (cherry picked from commit 6544b25) Co-authored-by: Daniel Hahler <git@thequod.de>


Fixes https://bugs.python.org/issue37022.
https://bugs.python.org/issue37022
The text was updated successfully, but these errors were encountered: