You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove deprecated support for returning non-complex/float/int types in __complex__/__float__/__int__/__index__() #109311
changed the title [-]Remove deprecated support for returning non-complex/float types in __complex__/__float__()[/-][+]Remove deprecated support for returning non-complex/float/int types in __complex__/__float__/__int__/__index__()[/+]on May 4, 2026
Activity
corona10 commentedon Sep 12, 2023
cc @mdickinson
skirpichev commentedon Oct 6, 2023
BTW, support for int subclasses in
__int__()was deprecated in3.10 (#15636)3.3 (#61776, 31a6554), so we can remove this in 3.13 as well.pythongh-109311: Remove support for non-complex/float types in __comp…
pythongh-109311: Remove support for non-complex/float types in __comp…
serhiy-storchaka commentedon Jun 2, 2025
https://discuss.python.org/t/about-type-conversion-special-methods/94212
[-]Remove deprecated support for returning non-complex/float types in __complex__/__float__()[/-][+]Remove deprecated support for returning non-complex/float/int types in __complex__/__float__/__int__/__index__()[/+]skirpichev commentedon May 4, 2026
#144584 merged with this.