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
Incorrect overflows for complex powers when base is infinite #156693
Python 3.16.0a0 (heads/main:ee68f5f46a1, Aug 12 2026, 11:19:39) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> complex('inf+0j')**1
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
complex('inf+0j')**1
~~~~~~~~~~~~~~~~~^^~
OverflowError: complex exponentiation
Activity
serhiy-storchaka commentedon Sep 3, 2026
complex('inf+0j')**1was fixed by #124243. Are there other examples?skirpichev commentedon Sep 3, 2026
I think no, my fix was based on #124243.