PEP 558: Fix typos in recently merged changes (#2021)

This commit is contained in:
Nick Coghlan 2021-07-09 11:03:09 +10:00 committed by GitHub
parent 18c5d63b4a
commit 7b707b51a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ API:
* *fast_refs*: a mapping from variable names to either fast local storage * *fast_refs*: a mapping from variable names to either fast local storage
offsets (for local variables) or to closure cells (for closure variables). offsets (for local variables) or to closure cells (for closure variables).
This mapping is lazily initialized on the first access to the mapping, rather This mapping is lazily initialized on the first access to the mapping, rather
being eagerly populated as soon as the proxy is created. than being eagerly populated as soon as the proxy is created.
``__getitem__`` operations on the proxy will populate the ``fast_refs`` mapping ``__getitem__`` operations on the proxy will populate the ``fast_refs`` mapping
(if it is not already populated), and then either return the relevant value (if it is not already populated), and then either return the relevant value
@ -384,7 +384,7 @@ For backwards compatibility with the existing ``PyEval_GetLocals()`` C API, the
C level ``f_locals`` struct field does *not* store an instance of the new proxy C level ``f_locals`` struct field does *not* store an instance of the new proxy
type. In most cases the C level ``f_locals`` struct field will be ``NULL`` on an type. In most cases the C level ``f_locals`` struct field will be ``NULL`` on an
optimised frame, but if ``PyEval_GetLocals()`` is called, or optimised frame, but if ``PyEval_GetLocals()`` is called, or
``PyFrame_LocalsToFast()`` or ``PyFrame_FastToLocalsWithError`` are called for ``PyFrame_FastToLocals()`` or ``PyFrame_FastToLocalsWithError()`` are called for
any other reason (e.g. to resolve a Python level ``locals()`` builtin call), any other reason (e.g. to resolve a Python level ``locals()`` builtin call),
then the field will be populated with an implicitly updated snapshot of the then the field will be populated with an implicitly updated snapshot of the
local variables and closure references for the frame, just as it is today. local variables and closure references for the frame, just as it is today.