https://github.com/python/cpython/commit/27bd9634492c26a0cabf4f3b87851d3dd69f93ac
commit: 27bd9634492c26a0cabf4f3b87851d3dd69f93ac
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-11T20:58:17+03:00
summary:

[3.15] gh-156662: Note that TaskGroup.create_task() raises RuntimeError 
(GH-156663) (#157316)

Co-authored-by: Timofei Ivankov <[email protected]>

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

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index aeff6809188157..ec4d232c1f63aa 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -356,7 +356,7 @@ and reliable way to wait for all tasks in the group to 
finish.
       The signature matches that of :func:`asyncio.create_task`.
       If the task group is inactive (e.g. not yet entered,
       already finished, or in the process of shutting down),
-      we will close the given ``coro``.
+      we will close the given ``coro`` and raise :exc:`RuntimeError`.
 
       .. versionchanged:: 3.13
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to