https://github.com/python/cpython/commit/ff66901d8a8753c11d4411e62376b26f17aa90cf
commit: ff66901d8a8753c11d4411e62376b26f17aa90cf
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: kumaraditya303 <kumaradi...@python.org>
date: 2025-04-13T07:41:26Z
summary:

[3.13] gh-132354: document return value for `asyncio.Task.cancel` (GH-132374) 
(#132465)

gh-132354: document return value for `asyncio.Task.cancel` (GH-132374)
(cherry picked from commit 64b066ad298506f715647c9a2524c9fbbc764cc2)

Co-authored-by: Felix Scherz <felixwsch...@gmail.com>

files:
M Doc/library/asyncio-task.rst
M Misc/ACKS

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index ddba9f20a3c03b..6c83ab94af3955 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -1336,7 +1336,10 @@ Task Object
 
       Request the Task to be cancelled.
 
-      This arranges for a :exc:`CancelledError` exception to be thrown
+      If the Task is already *done* or *cancelled*, return ``False``,
+      otherwise, return ``True``.
+
+      The method arranges for a :exc:`CancelledError` exception to be thrown
       into the wrapped coroutine on the next cycle of the event loop.
 
       The coroutine then has a chance to clean up or even deny the
diff --git a/Misc/ACKS b/Misc/ACKS
index f236c6400c2b30..3adb168f33c40a 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1644,6 +1644,7 @@ Andreas Schawo
 Neil Schemenauer
 David Scherer
 Wolfgang Scherer
+Felix Scherz
 Hynek Schlawack
 Bob Schmertz
 Gregor Schmid

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to