[issue28529] 0 ** 0 should raise ArithmeticError
Tim Peters
report at bugs.python.org
Tue Oct 25 11:18:41 EDT 2016
Tim Peters added the comment:
This won't be changed - it's a near-universally mandated behavior across relevant standards. Many years ago it wasn't, but Knuth changed minds when he wrote:
"""
We must define x^0=1 for all x, if the binomial theorem is to be valid when x=0 , y=0 , and/or x=-y . The theorem is too important to be arbitrarily restricted!
"""
More here:
https://www.quora.com/Why-does-Python-return-1-for-pow-0-0-which-is-mathematically-wrong
----------
nosy: +tim.peters
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28529>
_______________________________________
More information about the Python-bugs-list
mailing list