SIGN IN SIGN UP

[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136581)

gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379)
(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)

Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
M
Miss Islington (bot) committed
d5866a8e8432c15eac65a3059d71bc60d9aa61bf
Parent: c71ecd1
Committed by GitHub <noreply@github.com> on 7/12/2025, 2:38:57 PM