diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-05-03 18:23:14 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-05-03 18:23:14 (GMT) |
commit | 1840c1abcade9215faf91b701ab4525ba948d9dc (patch) | |
tree | 78c0104da7d1baf853443b320ee8421076289694 /Doc/library/decimal.rst | |
parent | 2b30ea068fdac34a7bbeb5d3cf90796f5034aea6 (diff) | |
download | cpython-1840c1abcade9215faf91b701ab4525ba948d9dc.zip cpython-1840c1abcade9215faf91b701ab4525ba948d9dc.tar.gz cpython-1840c1abcade9215faf91b701ab4525ba948d9dc.tar.bz2 |
Backport Raymond's changes in r60508 to Python 2.6.
'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 e903a05..3359703 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -100,7 +100,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. @@ -1121,7 +1121,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. |