You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation of "decimal" library - Context.logical_??? methods
There is a understatement in docstring of decimal.Context.logical_xxx methods. All arguments should be instances of decimal.Decimal, but consisting only of binary digits only (i.e. "0" and "1"). If the number is not an integer or consists of digits other than 0 and 1, an exception is thrown:
Activity
skirpichev commentedon Mar 5, 2023
Also exponent and sign should be zero, see sphinx docs.
pythongh-102431: clarify constraints on arguments of logical_xxx methods
gh-102431: Clarify constraints on operands of Decimal logical operati…
[3.14] pythongh-102431: Clarify constraints on operands of Decimal lo…
[3.13] pythongh-102431: Clarify constraints on operands of Decimal lo…
[3.14] gh-102431: Clarify constraints on operands of Decimal logical …
[3.13] gh-102431: Clarify constraints on operands of Decimal logical …
pythongh-102431: Clarify constraints on operands of Decimal logical o…