Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-21161: pdb: default: handle list comprehensions#15194
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
blueyed commentedAug 9, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
test_gdb crashed on Azure (https://dev.azure.com/Python/cpython/_build/results?buildId=48361&view=logs&j=c83831cd-3752-5cc7-2f01-8276919eb334): (retrying) |
00fac9a toff84fb3Compareviniciusd commentedAug 21, 2019
Congrats for the work here :) |
blueyed commentedAug 21, 2019
I do not think it is necessary really - the test proves that the namespace is handled properly/differently already. |
| deftest_list_comprehensions(self): | ||
| script=""" | ||
| def f(): | ||
| mylocal = "init_mylocal" # noqa: F841 |
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.
What does the comment mean?
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.
Local variable name is assigned to but never used (F841)
| commands=""" | ||
| continue | ||
| p "mylocal:" + mylocal |
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.
Do you need this line in the test?
| ifline[:1]=='!':line=line[1:] | ||
| locals=self.curframe_locals | ||
| globals=self.curframe.f_globals | ||
| ns=self.curframe.f_globals.copy() |
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.
What it the code that is being debugged changesglobals()? This would mean any changes to self.curframe.f_globals by the calling code is dropped, is it not?
erlend-aasland commentedMay 6, 2024
The linked issue was fixed by#111094; closing this since the linked issue is now resolved. Thanks for your interest in improving CPython! |
Uh oh!
There was an error while loading.Please reload this page.
Fixeshttps://bugs.python.org/issue21161.
TODO:
https://bugs.python.org/issue21161