bpo-44339: Fix math.pow corner case to comply with IEEE 754 (GH-26606)
Change the behaviour of `math.pow(0.0, -math.inf)` and `math.pow(-0.0, -math.inf)` to return positive infinity instead of raising `ValueError`. This makes `math.pow` consistent with the built-in `pow` (and the `**` operator) for this particular special case, and brings the `math.pow` special-case handling into compliance with IEEE 754.
M
Mark Dickinson committed
4a42cebf6dd769e2fa4e234a9e91093b3ad1cb63
Parent: 3ec3ee7
Committed by GitHub <noreply@github.com>
on 6/12/2021, 9:23:02 AM