mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Bring decimal a bit closer to the spec for Reals.
This commit is contained in:
parent
19a5c29d27
commit
116f72fa5c
2 changed files with 15 additions and 4 deletions
|
@ -51,10 +51,7 @@ Inexact.register(float)
|
|||
|
||||
## Notes on Decimal and it how relates to the numeric tower
|
||||
## --------------------------------------------------------
|
||||
## Decimal is Real except that it does not support the real and imag properties
|
||||
## or the conjugate() and complex() methods. If those get defined at some
|
||||
## point, they cannot use the default implementation which would be sensitive
|
||||
## to decimal.Context and could produce different answers at different times.
|
||||
## Decimal is Real except that it does not support rich comparisons.
|
||||
##
|
||||
## Decimal has some of the characteristics of Integrals. It provides
|
||||
## logical operations but not as operators. The logical operations only apply
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue