[New-bugs-announce] [issue28529] 0 ** 0 should raise ArithmeticError
Jáchym Barvínek
report at bugs.python.org
Tue Oct 25 10:57:20 EDT 2016
New submission from Jáchym Barvínek:
0 ** 0 is mathematically undefined and equivalent to 0/0. 0/0 correctly raises ZeroDivisionError, but 0 ** 0 == 1. Also 0.0 ** 0 == 0 ** 0.0 == 0.0 ** 0.0 == 0.0. Similarly for math.pow.
----------
components: Interpreter Core
messages: 279410
nosy: Jáchym Barvínek
priority: normal
severity: normal
status: open
title: 0 ** 0 should raise ArithmeticError
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28529>
_______________________________________
More information about the New-bugs-announce
mailing list