]> granicus.if.org Git - python/commitdiff
Typos in decimal comment and documentation
authorMark Dickinson <dickinsm@gmail.com>
Sun, 10 Feb 2008 15:19:58 +0000 (15:19 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 10 Feb 2008 15:19:58 +0000 (15:19 +0000)
Doc/library/decimal.rst
Lib/decimal.py

index c564a5714a424af56aa50cd8433886e0bc59a5c1..9bbde666599aebda7658cb4ae89a47e7046ddd2b 100644 (file)
@@ -890,7 +890,7 @@ described below. In addition, the module provides three pre-made contexts:
    :const:`ROUND_HALF_EVEN`.  All flags are cleared.  No traps are enabled (so that
    exceptions are not raised during computations).
 
-   Because the trapped are disabled, this context is useful for applications that
+   Because the traps are disabled, this context is useful for applications that
    prefer to have result value of :const:`NaN` or :const:`Infinity` instead of
    raising exceptions.  This allows an application to complete a run in the
    presence of conditions that would otherwise halt the program.
@@ -1309,7 +1309,7 @@ quiet or signaling :const:`NaN` always returns :const:`False` (even when doing
 :const:`True`.  An attempt to compare two Decimals using any of the ``<``,
 ``<=``, ``>`` or ``>=`` operators will raise the :exc:`InvalidOperation` signal
 if either operand is a :const:`NaN`, and return :const:`False` if this signal is
-trapped.  Note that the General Decimal Arithmetic specification does not
+not trapped.  Note that the General Decimal Arithmetic specification does not
 specify the behavior of direct comparisons; these rules for comparisons
 involving a :const:`NaN` were taken from the IEEE 854 standard (see Table 3 in
 section 5.7).  To ensure strict standards-compliance, use the :meth:`compare`
index 80340396658f116cdb34ad7d91cce51b51369780..4f23d33d0de2eb66c25b55b98133e2e6fbe84ccf 100644 (file)
@@ -801,7 +801,7 @@ class Decimal(object):
     #   != comparisons involving a NaN always return True
     #   <, >, <= and >= comparisons involving a (quiet or signaling)
     #      NaN signal InvalidOperation, and return False if the
-    #      InvalidOperation is trapped.
+    #      InvalidOperation is not trapped.
     #
     # This behavior is designed to conform as closely as possible to
     # that specified by IEEE 754.