]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fixup policy docs (GH-97618)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Sep 2022 17:42:28 +0000 (10:42 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:05:55 +0000 (20:05 +0100)
(cherry picked from commit 9a404b173e57ce171a867cfc3776cdf88d6c553f)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Doc/library/asyncio-policy.rst

index ef6a0588506b52bcc81ecd97cbebc11772a027ac..d528db72fb827173cd51a7b6be36a0537c99a9fb 100644 (file)
@@ -7,9 +7,14 @@
 Policies
 ========
 
-An event loop policy is a global per-process object that controls
-the management of the event loop. Each event loop has a default
-policy, which can be changed and customized using the policy API.
+An event loop policy is a global object
+used to get and set the current :ref:`event loop <asyncio-event-loop>`,
+as well as create new event loops.
+The default policy can be :ref:`replaced <asyncio-policy-get-set>` with
+:ref:`built-in alternatives <asyncio-policy-builtin>`
+to use different event loop implementations,
+or substituted by a :ref:`custom policy <asyncio-custom-policies>`
+that can override these behaviors.
 
 A policy defines the notion of *context* and manages a
 separate event loop per context. The default policy