From 36d98a00ea6f7ceb30280c15853f113a66a702eb Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sun, 22 Oct 2023 17:07:55 +0300 Subject: [PATCH 1/3] gh-101100: Fix sphinx warnings in `library/asyncio-dev.rst` --- Doc/library/asyncio-eventloop.rst | 14 +++++++++++--- Doc/tools/.nitignore | 1 - 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 361e7bb9c8f2fa..91c1ab74a37102 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -243,9 +243,9 @@ Scheduling callbacks See the :ref:`concurrency and multithreading ` section of the documentation. -.. versionchanged:: 3.7 - The *context* keyword-only parameter was added. See :pep:`567` - for more details. + .. versionchanged:: 3.7 + The *context* keyword-only parameter was added. See :pep:`567` + for more details. .. _asyncio-pass-keywords: @@ -1391,6 +1391,14 @@ Enabling debug mode The new :ref:`Python Development Mode ` can now also be used to enable the debug mode. +.. attribute:: loop.slow_callback_duration + + When debug mode is enabled, this attribute can be used to set the + minimum execution duration in seconds that is considered "slow". + "Slow" callbacks are logged. + + Default value is 100 milliseconds. + .. seealso:: The :ref:`debug mode of asyncio `. diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index a8c99ee5547b74..62e63d6d62960c 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -30,7 +30,6 @@ Doc/howto/logging.rst Doc/howto/urllib2.rst Doc/library/abc.rst Doc/library/ast.rst -Doc/library/asyncio-dev.rst Doc/library/asyncio-eventloop.rst Doc/library/asyncio-extending.rst Doc/library/asyncio-policy.rst From 33c805aee67aae31d8429ac26f89f9d2ed416341 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Sun, 22 Oct 2023 10:01:47 -0700 Subject: [PATCH 2/3] Update Doc/library/asyncio-eventloop.rst --- Doc/library/asyncio-eventloop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 91c1ab74a37102..f972ebd55601b5 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1393,7 +1393,7 @@ Enabling debug mode .. attribute:: loop.slow_callback_duration - When debug mode is enabled, this attribute can be used to set the + This attribute can be used to set the minimum execution duration in seconds that is considered "slow". "Slow" callbacks are logged. From f962e89eb8ec679c5df75b605fb6241710a6787b Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Sun, 22 Oct 2023 10:01:57 -0700 Subject: [PATCH 3/3] Update Doc/library/asyncio-eventloop.rst --- Doc/library/asyncio-eventloop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index f972ebd55601b5..dcdb0827daf8b7 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1395,7 +1395,7 @@ Enabling debug mode This attribute can be used to set the minimum execution duration in seconds that is considered "slow". - "Slow" callbacks are logged. + When debug mode is enabled, "slow" callbacks are logged. Default value is 100 milliseconds.