Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

Stack from ghstack (oldest at bottom):

Per PEP 667 PyFrame_GetLocals no longer returns dict, but rather instance of PyFrameLocalsProxy_Type, so calling PyDict_GetItemString is no longer valid(it will always return None) and must be replaced with PyMapping_GetItemString

Tested by partially reverting #141674 full revert will be done in the followup PR

Fixes #148273

Per [PEP 667](https://peps.python.org/pep-0667/) `PyFrame_GetLocals` no longer returns dict, but rather instance of `PyFrameLocalsProxy_Type`, so calling `PyDict_GetItemString` is no longer valid(it will always return None) and must be replaced with `PyMapping_GetItemString`

Tested by partially reverting #141674 full revert will be done in the followup PR

Fixes #148273
Pull Request resolved: #153848
Approved by: https://github.com/Skylion007

(cherry picked from commit c0343b1)
@pytorch-bot
Copy link

pytorch-bot bot commented May 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/154037

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 19b80ad with merge base 924a247 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copy link
Contributor

@sraikund16 sraikund16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@atalman atalman merged commit bdec157 into release/2.7 May 21, 2025
102 checks passed
@github-actions github-actions bot deleted the cherry-pick-153848-by-pytorch_bot_bot_ branch June 21, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants