]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948)
authorThomas Grainger <tagrain@gmail.com>
Sun, 18 May 2025 13:50:07 +0000 (14:50 +0100)
committerGitHub <noreply@github.com>
Sun, 18 May 2025 13:50:07 +0000 (06:50 -0700)
commitfd6a602d0438b42fa5f83d7cccc2b6d99cff8ad1
treeadf51d0e59a9b7ff9fe155f67904553f7ba73632
parentebe54d7ab7ccafbd0a8a6036fd12de971dd2f55b
[3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948)

In 3.13.3 we accidentally broke the interface for custom task factory. Factory authors added workarounds.
This PR (for 3.13.4) unbreaks task factories that haven't made a workaround yet while also supporting those that have.

NOTE: The custom task factory API will change to what we accidentally released in 3.13.3.

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Doc/library/asyncio-eventloop.rst
Lib/asyncio/base_events.py
Lib/test/test_asyncio/test_taskgroups.py
Misc/NEWS.d/next/Library/2025-05-14-08-13-08.gh-issue-133745.rjgJkH.rst [new file with mode: 0644]