]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118934: Fix PyEval_GetLocals docs (PEP 667) (#119932)
authorAlyssa Coghlan <ncoghlan@gmail.com>
Sun, 2 Jun 2024 04:44:29 +0000 (14:44 +1000)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 04:44:29 +0000 (04:44 +0000)
commitfd6cd621e0cce6ba2e737103d2a62b5ade90f41f
tree470e7dbccebae7db66b4666e636edce75ef57dcb
parente378dc15b52985724b6ae4782c4ef0afc3393ca9
gh-118934: Fix PyEval_GetLocals docs (PEP 667) (#119932)

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)
Doc/c-api/reflection.rst
Doc/reference/datamodel.rst
Doc/whatsnew/3.13.rst