PEP 510: Resolve uses of the default role (#3398)

This commit is contained in:
Adam Turner 2023-09-01 20:27:36 +01:00 committed by GitHub
parent 47b79e09fe
commit 96480c49e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -125,11 +125,11 @@ Hypothetical myoptimizer module
Examples in this PEP uses a hypothetical ``myoptimizer`` module which
provides the following functions and types:
* ``specialize(func, code, guards)``: add the specialized code `code`
with guards `guards` to the function `func`
* ``specialize(func, code, guards)``: add the specialized code ``code``
with guards ``guards`` to the function ``func``
* ``get_specialized(func)``: get the list of specialized codes as a list
of ``(code, guards)`` tuples where `code` is a callable or code object
and `guards` is a list of a guards
of ``(code, guards)`` tuples where ``code`` is a callable or code object
and ``guards`` is a list of a guards
* ``GuardBuiltins(name)``: guard watching for
``builtins.__dict__[name]`` and ``globals()[name]``. The guard fails
if ``builtins.__dict__[name]`` is replaced, or if ``globals()[name]``
@ -323,7 +323,7 @@ The ``check()`` function checks a guard:
*stack* is an array of arguments: indexed arguments followed by (*key*,
*value*) pairs of keyword arguments. *na* is the number of indexed
arguments. *nk* is the number of keyword arguments: the number of (*key*,
*value*) pairs. `stack` contains ``na + nk * 2`` objects.
*value*) pairs. ``stack`` contains ``na + nk * 2`` objects.
Specialized code