]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119934)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Jun 2024 05:57:17 +0000 (07:57 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 05:57:17 +0000 (05:57 +0000)
commitcf8f292a362c3715c536ff90d3e5d0c98ecf2bf0
tree8363ac3fe6a451824e3a995872cb1976f03b25cb
parent36ca00f44d0136384f3f89b7fe2632bc802ec64d
[3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119934)

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 fd6cd621e0cce6ba2e737103d2a62b5ade90f41f)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Doc/c-api/reflection.rst
Doc/reference/datamodel.rst
Doc/whatsnew/3.13.rst