mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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).
This commit is contained in:
parent
5a0022a1d7
commit
9c13d9e37a
4 changed files with 22 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue