diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-01 20:38:12 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-01 20:38:12 (GMT) |
commit | 86173daf8d7a4d69a7109bac1d658d2368dddee3 (patch) | |
tree | 5959486c17a56a671c4e4e440a047eded94f45bf /Doc/library/decimal.rst | |
parent | 48aa4b15843ba5e2eab3c4295e4e81df26f1192a (diff) | |
download | cpython-86173daf8d7a4d69a7109bac1d658d2368dddee3.zip cpython-86173daf8d7a4d69a7109bac1d658d2368dddee3.tar.gz cpython-86173daf8d7a4d69a7109bac1d658d2368dddee3.tar.bz2 |
Context flags get set, not incremented.
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r-- | Doc/library/decimal.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 4f8c127..f59689f 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -75,7 +75,7 @@ decimal module are: :const:`Clamped`, :const:`InvalidOperation`, :const:`Overflow`, and :const:`Underflow`. For each signal there is a flag and a trap enabler. When a signal is -encountered, its flag is incremented from zero and, then, if the trap enabler is +encountered, its flag is set to one, then, if the trap enabler is set to one, an exception is raised. Flags are sticky, so the user needs to reset them before monitoring a calculation. @@ -1045,7 +1045,7 @@ Signals Signals represent conditions that arise during computation. Each corresponds to one context flag and one context trap enabler. -The context flag is incremented whenever the condition is encountered. After the +The context flag is set whenever the condition is encountered. After the computation, flags may be checked for informational purposes (for instance, to determine whether a computation was exact). After checking the flags, be sure to clear all flags before starting the next computation. |