SIGN IN SIGN UP

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

GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#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 cae853e3b44cd5cb033b904e163c490dd28bc30a)
K
Kumar Aditya committed
f54e1a2d6474b4379cab70945fb9e37265bf4159
Parent: b673581
Committed by GitHub <noreply@github.com> on 10/25/2024, 1:19:31 PM