summaryrefslogtreecommitdiffstats
path: root/Doc/reference/datamodel.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2024-05-05 15:31:26 (GMT)
committerGitHub <noreply@github.com>2024-05-05 15:31:26 (GMT)
commit9c13d9e37a194f574b8591da634bf98419786448 (patch)
treef07a1aee30fcce27fc372d7892e967e7669c6c89 /Doc/reference/datamodel.rst
parent5a0022a1d70e4f7f781c4e8d7b43e9f5c9e2f0b4 (diff)
downloadcpython-9c13d9e37a194f574b8591da634bf98419786448.zip
cpython-9c13d9e37a194f574b8591da634bf98419786448.tar.gz
cpython-9c13d9e37a194f574b8591da634bf98419786448.tar.bz2
gh-74929: Rudimentary docs for PEP 667 (#118581)
This is *not* sufficient for the final 3.13 release, but it will do for beta 1: - What's new entry - Updated changelog entry (news blurb) - Mention the proxy for f_globals in the datamodel and Python frame object docs This doesn't have any C API details (what's new refers to the PEP).
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r--Doc/reference/datamodel.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 5e15583..f9438a1 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1341,7 +1341,12 @@ Special read-only attributes
* - .. attribute:: frame.f_locals
- The dictionary used by the frame to look up
- :ref:`local variables <naming>`
+ :ref:`local variables <naming>`.
+ If the frame refers to a function or comprehension,
+ this may return a write-through proxy object.
+
+ .. versionchanged:: 3.13
+ Return a proxy for functions and comprehensions.
* - .. attribute:: frame.f_globals
- The dictionary used by the frame to look up