cpython/Misc/NEWS.d/next/Core and Builtins/2024-05-15-12-15-58.gh-issu...

5 lines
224 B
ReStructuredText

Improve :exc:`ZeroDivisionError` error message.
Now, all error messages are harmonized: all ``/``, ``//``, and ``%``
operations just use "division by zero" message.
And ``0 ** -1`` operation uses "zero to a negative power".