Skip to content

Conversation

@miss-islington
Copy link
Contributor

GH-125789: fix fut._callbacks to always return a copy of callbacks (GH-125922)

Fix asyncio.Future._callbacks to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.

(cherry picked from commit f54e1a2)

Co-authored-by: Kumar Aditya kumaraditya@python.org
(cherry picked from commit cae853e)

…of callbacks (pythonGH-125922) (pythonGH-125976) pythonGH-125789: fix `fut._callbacks` to always return a copy of callbacks (pythonGH-125922) Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state. (cherry picked from commit f54e1a2) Co-authored-by: Kumar Aditya <kumaraditya@python.org> (cherry picked from commit cae853e)
@picnixz
Copy link
Member

picnixz commented Oct 25, 2024

@kumaraditya303 Just to remember that for this one, you should probably remove the [3.13] mention in the merge commit message and PR title (I don't want to mess up with auto-gen titles so I won't change it now)

@kumaraditya303kumaraditya303 merged commit 42927f7 into python:3.12Oct 25, 2024
@miss-islingtonmiss-islington deleted the backport-f54e1a2-3.12 branch January 2, 2026 18:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@picnixz@kumaraditya303