[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-08-15 Thread Stefan Krah
Stefan Krah added the comment: Mark, do you think that we should document the other oddity as well or should we close this? -- status: open -> pending ___ Python tracker ___

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-19 Thread miss-islington
miss-islington added the comment: New changeset dac8a3a15647d016842e2ae7284cefa27ce5e838 by Miss Islington (bot) in branch '3.8': bpo-41205: Document Decimal power 0 to the 0 (GH-21386) https://github.com/python/cpython/commit/dac8a3a15647d016842e2ae7284cefa27ce5e838 --

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-19 Thread miss-islington
miss-islington added the comment: New changeset 8831162464138eb0267f4967b85710247ee95fde by Miss Islington (bot) in branch '3.9': bpo-41205: Document Decimal power 0 to the 0 (GH-21386) https://github.com/python/cpython/commit/8831162464138eb0267f4967b85710247ee95fde --

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +20689 pull_request: https://github.com/python/cpython/pull/21547 ___ Python tracker

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +20690 pull_request: https://github.com/python/cpython/pull/21548 ___ Python tracker ___

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-19 Thread Stefan Krah
Stefan Krah added the comment: New changeset 10e466448f67850ed7bb2e2a4e7f017f2b050cad by Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) in branch 'master': bpo-41205: Document Decimal power 0 to the 0 (GH-21386)

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-07 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 7.0 -> 8.0 pull_requests: +20532 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21386 ___ Python

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-07 Thread Mark Dickinson
Mark Dickinson added the comment: @JD-Veiga: would you be willing to work on a PR? -- ___ Python tracker ___ ___ Python-bugs-list

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-04 Thread Stefan Krah
Stefan Krah added the comment: Agreed, and it's even slightly worse with the ROUND_FLOOR special case: >>> c.rounding = ROUND_FLOOR >>> +Decimal("-0") Decimal('-0') >>> That's why there are three slightly different methods for applying the context: 1) context.create_decimal() ==>

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-04 Thread Mark Dickinson
Mark Dickinson added the comment: I agree that the result is surprising and should be noted in the docs; we shouldn't expect all the decimal users to be familiar with the specification. Some of the other differences with float arithmetic *are* noted (e.g., the behaviour of `//` and `%`),

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-04 Thread JD-Veiga
JD-Veiga added the comment: Well, it is the way that it has been defined in `decimal` package and in the document that inspired this package (IBM's General Decimal Arithmetic Specification, The General Decimal Arithmetic Specification: http://speleotrove.com/decimal/decarith.html).

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-03 Thread Tim Peters
Tim Peters added the comment: Huh! I thought everyone in Standards World gave up by now, and agreed 0**0 should be 1. -- nosy: +tim.peters ___ Python tracker ___

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +facundobatista, mark.dickinson, rhettinger, skrah ___ Python tracker ___ ___

[issue41205] Documentation Decimal power 0 to the 0 is Nan (versus 0 to the 0 which is 1)

2020-07-03 Thread JD-Veiga
New submission from JD-Veiga : Hi, I would like to propose a minor addition to `decimal` package documentation page (https://docs.python.org/3/library/decimal.html). I think that we should add a paragraph in `context.power(x, y, modulo=None)` stating that `Decimal(0) ** Decimal(0)` returns