From 938f2b602a6598ec740b9d97137abbb522737604 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Wed, 14 Jul 2021 17:40:22 +0100 Subject: [PATCH] PEP 533: Fix links containing inline code. --- pep-0533.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pep-0533.txt b/pep-0533.txt index a0325bdf0cc..f7c6df031d5 100644 --- a/pep-0533.txt +++ b/pep-0533.txt @@ -180,9 +180,9 @@ Alternatives PEP 525 asyncgen hooks ---------------------- -PEP 525 proposes a `set of global thread-local hooks managed by new -``sys.{get/set}_asyncgen_hooks()`` functions -`_, which +PEP 525 `proposes a set of global thread-local hooks +`_ +managed by new ``sys.{get/set}_asyncgen_hooks()`` functions, which allow event loops to integrate with the garbage collector to run cleanup for async generators. In principle, this proposal and PEP 525 are complementary, in the same way that ``with`` blocks and @@ -609,12 +609,11 @@ as:: operations.iterclose(iter(iterable)) map_chaining_exceptions(iterclose_iterable, iterables, last_exc=e) -In some cases this requires some subtlety; for example, -```itertools.tee`` -`_ +In some cases this requires some subtlety; for example, `itertools.tee`_ should not call ``__iterclose__`` on the underlying iterator until it has been called on *all* of the clone iterators. +.. _itertools.tee: https://docs.python.org/3/library/itertools.html#itertools.tee Example / Rationale -------------------