Skip to content

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

Merged
ncoghlan merged 1 commit into
python:3.13from
miss-islington:backport-fd6cd62-3.13
Jun 2, 2024
Merged

ncoghlan merged 1 commit into
python:3.13from
miss-islington:backport-fd6cd62-3.13

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

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 ncoghlan@gmail.com


📚 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 <ncoghlan@gmail.com>
@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
@miss-islington
miss-islington deleted the backport-fd6cd62-3.13 branch January 2, 2026 19:01
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

2 participants