Skip to content

[3.13] GH-125789: fix fut._callbacks to always return a copy of callbacks (#125922) - #125976

Merged
kumaraditya303 merged 1 commit into
python:3.13from
kumaraditya303:backport-cae853e-3.13
Oct 25, 2024
Merged

[3.13] GH-125789: fix fut._callbacks to always return a copy of callbacks (#125922)#125976
kumaraditya303 merged 1 commit into
python:3.13from
kumaraditya303:backport-cae853e-3.13

Conversation

@kumaraditya303

@kumaraditya303kumaraditya303 commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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
Copy Markdown

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

@bedevere-appbedevere-appBot 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 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.

1 participant

@kumaraditya303