Uh oh!
There was an error while loading. Please reload this page.
GH-101673: Fix pdb bug that local variable changes lost after longlist - #101674
Conversation
bedevere-bot
commented
Feb 8, 2023
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
e0ac654 to
3acb643Comparebedevere-bot
commented
Feb 9, 2023
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Use double ticks for inline code
artemmukhin
commented
Mar 11, 2023
@iritkatriel I am wondering if you could be an appropriate reviewer for this. Could you please take a look? |
iritkatriel
commented
Mar 12, 2023
Thanks for adding the test. Before merging this I would need to spend some time to understand why this happened and to convince myself that this is the right solution. If someone else reviews it before I get around to it that's obviously fine. |
artemmukhin
commented
Mar 12, 2023
@iritkatriel Thank you for your quick response. I have investigated the issue further and discovered that the problematic However, So I believe that we should consider replacing the custom |
gaogaotiantian
commented
Mar 12, 2023
Yeah I think that’s the way to go. The original customized pdb version was to avoid module level frame issue and it would be nice to not to keep multiple identical code pieces around. The functionality seems to be the same. I’ll make the changes to use inspect version directly and remove the pdb version. |
gaogaotiantian
commented
Mar 12, 2023
As @ortem said, the reason we had a separate |
Uh oh!
There was an error while loading. Please reload this page.
miss-islington
commented
Mar 12, 2023
Thanks @gaogaotiantian for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
miss-islington
commented
Mar 12, 2023
Sorry, @gaogaotiantian and @iritkatriel, I could not cleanly backport this to |
…ter longlist (pythonGH-101674) (cherry picked from commit 5d677c5) Co-authored-by: gaogaotiantian <gaogaotiantian@hotmail.com>
bedevere-bot
commented
Mar 12, 2023
GH-102632 is a backport of this pull request to the 3.11 branch. |
…ter longlist (python#101674) (cherry picked from commit 5d677c5)
bedevere-bot
commented
Mar 12, 2023
GH-102633 is a backport of this pull request to the 3.10 branch. |
The bug is described in #101673.
Using
f_code.co_nameto check whether it's a frame module avoids readingf_localwhose side effect reverts local variable changes in pdb.