]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
authorGeorg Brandl <georg@python.org>
Mon, 22 Aug 2005 19:35:24 +0000 (19:35 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 22 Aug 2005 19:35:24 +0000 (19:35 +0000)
Doc/lib/libdecimal.tex
Lib/decimal.py
Misc/cheatsheet

index 60fb779f5ee7814dd90576fcdf0a18a8165d0716..3a01f1947537b0f529c5f78ed5a6b4f88db4dec6 100644 (file)
@@ -693,7 +693,7 @@ here.
   Return the square root to full precision.
 \end{methoddesc}                    
 
-\begin{methoddesc}{substract}{x, y}
+\begin{methoddesc}{subtract}{x, y}
   Return the difference between \var{x} and \var{y}.
 \end{methoddesc}
  
index 1d8ed405b07974e5da85c0dd7412965ed34a2bde..fe0942e143126bed1695f3a34d3a5f1c2be1f59f 100644 (file)
@@ -2754,7 +2754,7 @@ class Context(object):
         return a.sqrt(context=self)
 
     def subtract(self, a, b):
-        """Return the sum of the two operands.
+        """Return the difference between the two operands.
 
         >>> ExtendedContext.subtract(Decimal('1.3'), Decimal('1.07'))
         Decimal("0.23")
index 071f13d3116517eace53306543898c9b33c18ac9..718c77bf2b9d1d7f8ac1af518ffabdceac7e799d 100644 (file)
@@ -209,7 +209,7 @@ Highest             Operator                             Comment
         +x, -x, ~x                        Unary operators
         x**y                              Power
         x*y  x/y  x%y x//y                mult, division, modulo, floor division
-        x+y  x-y                          addition, substraction
+        x+y  x-y                          addition, subtraction
         x<<y   x>>y                       Bit shifting
         x&y                               Bitwise and
         x^y                               Bitwise exclusive or