-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-37022: Fix bug where pdb
's do_p
/do_pp
commands swallow exceptions from repr
#18180
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
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 |
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 084d10b 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
repr
with do_p
/do_pp
pdb
'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 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
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 <[email protected]>
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 <[email protected]>
… from repr (GH-18180) (GH-26650) (cherry picked from commit 6544b25) Co-authored-by: Daniel Hahler <[email protected]>
… from repr (GH-18180) (GH-26651) (cherry picked from commit 6544b25) Co-authored-by: Daniel Hahler <[email protected]>
Fixes https://bugs.python.org/issue37022.
https://bugs.python.org/issue37022