summaryrefslogtreecommitdiffstats
path: root/Doc/library/decimal.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r--Doc/library/decimal.rst17
1 files changed, 8 insertions, 9 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index d24cddf..ad8b65c 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -375,15 +375,14 @@ Decimal objects
.. method:: compare(other[, context])
- Compare the values of two Decimal instances. This operation behaves in
- the same way as the usual comparison method :meth:`__cmp__`, except that
- :meth:`compare` returns a Decimal instance rather than an integer, and if
- either operand is a NaN then the result is a NaN::
-
- a or b is a NaN ==> Decimal('NaN')
- a < b ==> Decimal('-1')
- a == b ==> Decimal('0')
- a > b ==> Decimal('1')
+ Compare the values of two Decimal instances. :meth:`compare` returns a
+ Decimal instance, and if either operand is a NaN then the result is a
+ NaN::
+
+ a or b is a NaN ==> Decimal('NaN')
+ a < b ==> Decimal('-1')
+ a == b ==> Decimal('0')
+ a > b ==> Decimal('1')
.. method:: compare_signal(other[, context])