PEP 533: Fix links containing inline code. (#2034)

This commit is contained in:
Dominic Davis-Foster 2021-07-14 18:18:34 +01:00 committed by GitHub
parent 38057a899b
commit 50d68cd497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -180,9 +180,9 @@ Alternatives
PEP 525 asyncgen hooks PEP 525 asyncgen hooks
---------------------- ----------------------
PEP 525 proposes a `set of global thread-local hooks managed by new PEP 525 `proposes a set of global thread-local hooks
``sys.{get/set}_asyncgen_hooks()`` functions <https://www.python.org/dev/peps/pep-0525/#finalization>`_
<https://www.python.org/dev/peps/pep-0525/#finalization>`_, which managed by new ``sys.{get/set}_asyncgen_hooks()`` functions, which
allow event loops to integrate with the garbage collector to run allow event loops to integrate with the garbage collector to run
cleanup for async generators. In principle, this proposal and PEP 525 cleanup for async generators. In principle, this proposal and PEP 525
are complementary, in the same way that ``with`` blocks and are complementary, in the same way that ``with`` blocks and
@ -609,12 +609,11 @@ as::
operations.iterclose(iter(iterable)) operations.iterclose(iter(iterable))
map_chaining_exceptions(iterclose_iterable, iterables, last_exc=e) map_chaining_exceptions(iterclose_iterable, iterables, last_exc=e)
In some cases this requires some subtlety; for example, In some cases this requires some subtlety; for example, `itertools.tee`_
```itertools.tee``
<https://docs.python.org/3/library/itertools.html#itertools.tee>`_
should not call ``__iterclose__`` on the underlying iterator until it should not call ``__iterclose__`` on the underlying iterator until it
has been called on *all* of the clone iterators. has been called on *all* of the clone iterators.
.. _itertools.tee: https://docs.python.org/3/library/itertools.html#itertools.tee
Example / Rationale Example / Rationale
------------------- -------------------