Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > Does anyone have an explanation why Decimal 0**0 behaves so differently from > float 0**0? > > Tested in both Python 2.7 and 3.3, float 0**0 returns 1, as I would expect:
The behavior follows the specification: http://speleotrove.com/decimal/daops.html#refpower Why exactly the decision was made I cannot say. Stefan Krah -- http://mail.python.org/mailman/listinfo/python-list