[Python-checkins] gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` (#101652)

kumaraditya303 webhook-mailer at python.org
Tue Feb 7 13:04:40 EST 2023


https://github.com/python/cpython/commit/f87f6e23964d7a4c38b655089cda65538a24ec36
commit: f87f6e23964d7a4c38b655089cda65538a24ec36
branch: main
author: Oleg Iarygin <oleg at arhadthedev.net>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-02-07T23:34:31+05:30
summary:

gh-97725: Fix documentation for the default file of `asyncio.Task.print_stack` (#101652)

files:
A Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst
M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 39112580285c..9b9842432822 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -1097,7 +1097,7 @@ Task Object
       The *limit* argument is passed to :meth:`get_stack` directly.
 
       The *file* argument is an I/O stream to which the output
-      is written; by default output is written to :data:`sys.stderr`.
+      is written; by default output is written to :data:`sys.stdout`.
 
    .. method:: get_coro()
 
diff --git a/Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst b/Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst
new file mode 100644
index 000000000000..fd9ea049c239
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2023-02-07-21-43-24.gh-issue-97725.cuY7Cd.rst
@@ -0,0 +1,2 @@
+Fix :meth:`asyncio.Task.print_stack` description for ``file=None``.
+Patch by Oleg Iarygin.



More information about the Python-checkins mailing list