diff options
author | Georg Brandl <georg@python.org> | 2008-09-24 09:11:47 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-09-24 09:11:47 (GMT) |
commit | 05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb (patch) | |
tree | 8a305a4e434000adb6d07fe1faaa795494d8ee95 /Doc/library/decimal.rst | |
parent | 23dbc6eeca5708ef0149e75a1ee4bb66df017e06 (diff) | |
download | cpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.zip cpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.tar.gz cpython-05f5ab7ee39b16bdd7fda23b3276d52b8c2b4acb.tar.bz2 |
Remove references to __cmp__.
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r-- | Doc/library/decimal.rst | 17 |
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]) |