summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-02-10 15:19:58 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-02-10 15:19:58 (GMT)
commit3a94ee05f77d0200cfb7988d02f3fdf292932a94 (patch)
treeb461b3b6f31d1da990b65f2b633f06dfc45134c3 /Doc
parentdd47aaebe8d06e45b24094f0a76d3f2289d50821 (diff)
downloadcpython-3a94ee05f77d0200cfb7988d02f3fdf292932a94.zip
cpython-3a94ee05f77d0200cfb7988d02f3fdf292932a94.tar.gz
cpython-3a94ee05f77d0200cfb7988d02f3fdf292932a94.tar.bz2
Typos in decimal comment and documentation
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/decimal.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index c564a57..9bbde66 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -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`