]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Lost one line on a decimal recipe.
authorRaymond Hettinger <python@rcn.com>
Sat, 3 Jan 2009 07:50:46 +0000 (07:50 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 3 Jan 2009 07:50:46 +0000 (07:50 +0000)
Doc/library/decimal.rst

index c90e9b9317d0891209b4091fae5a991220d7536b..e14c4d13b259110aa1936c37dcce2f296fe4fb82 100644 (file)
@@ -1884,6 +1884,7 @@ suggest, so we trap :const:`Inexact` to signal a need for more precision:
         ctx = Context(prec=60)
         result = ctx.divide(numerator, denominator)
         while ctx.flags[Inexact]:
+            ctx.flags[Inexact] = False
             ctx.prec *= 2
             result = ctx.divide(numerator, denominator)
         return result