[issue44339] Discrepancy between math.pow(0.0, -inf) and 0.0**-inf

Serhiy Storchaka report at bugs.python.org
Tue Jun 8 03:47:57 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

What about math.pow(0.0, -1.0)? Should it return -inf or raise ZeroDivisionError?

And what about math.pow(-0.0, -inf)? Should it return inf, -inf or nan or raise an exception?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44339>
_______________________________________


More information about the Python-bugs-list mailing list