mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-119057: Use better error messages for zero division (#119066)
This commit is contained in:
parent
153b118b78
commit
1d4c2e4a87
11 changed files with 32 additions and 20 deletions
|
|
@ -116,7 +116,7 @@ inf
|
|||
>>> 0 ** -1
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ZeroDivisionError: 0.0 cannot be raised to a negative power
|
||||
ZeroDivisionError: zero to a negative power
|
||||
>>> pow(0, NAN)
|
||||
nan
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue