Skip to content
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

gh-125170: Hard deprecate PyEval_GetLocals in 3.14 #128348

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

xuantengh
Copy link
Contributor

@xuantengh xuantengh commented Dec 30, 2024

This PR aims to hard deprecate the PyEval_GetLocals API by emitting a deprecated warning. Meanwhile, this also removes the corresponding tests for the API.

If we consider to deprecate PyFrame_FastToLocals and PyFrame_FastToLocalsWithError as well (mentioned in #125170 (comment)), please let me know. I think they can be done together in this PR.

Python/ceval.c Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

We don't need a blurb entry for deprecations (add an entry to pending-removal-in-3.16.rst instead).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've described this in c-api-pending-removal-in-3.16.rst

Copy link

cpython-cla-bot bot commented Dec 31, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

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.

2 participants