Skip to content

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Oct 25, 2024

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 cae853e)

…backs (python#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 cae853e)
@miss-islington-app
Copy link

Thanks @kumaraditya303 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 25, 2024
…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)
@bedevere-app
Copy link

bedevere-app bot commented Oct 25, 2024

GH-125977 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Oct 25, 2024
@kumaraditya303 kumaraditya303 deleted the backport-cae853e-3.13 branch October 29, 2024 16:14
Sign up for free to 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.

1 participant