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

[3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119932) #119934

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 2, 2024

PEP 667's description of the planned changes to PyEval_GetLocals
was internally inconsistent when accepted, so the docs added for
gh-74929 didn't match either the current behaviour or the intended
behaviour once gh-118934 is fixed.

This PR updates the documentation and 3.13 What's New to match the
intended behaviour (once gh-118934 is fixed).

It also tidies up lingering references to f_locals always being a
dictionary (this hasn't been true since at least when custom
namespace support for class statement execution was added)
(cherry picked from commit fd6cd62)

Co-authored-by: Alyssa Coghlan [email protected]


📚 Documentation preview 📚: https://cpython-previews--119934.org.readthedocs.build/

PEP 667's description of the planned changes to PyEval_GetLocals
was internally inconsistent when accepted, so the docs added for
pythongh-74929 didn't match either the current behaviour or the intended
behaviour once pythongh-118934 is fixed.

This PR updates the documentation and 3.13 What's New to match the
intended behaviour (once pythongh-118934 is fixed).

It also tidies up lingering references to `f_locals` always being a
dictionary (this hasn't been true since at least when custom
namespace support for class statement execution was added)
(cherry picked from commit fd6cd62)

Co-authored-by: Alyssa Coghlan <[email protected]>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir awaiting review labels Jun 2, 2024
@ncoghlan ncoghlan enabled auto-merge (squash) June 2, 2024 05:44
@ncoghlan ncoghlan merged commit cf8f292 into python:3.13 Jun 2, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants