Outdent "return +s" and explain why. Thanks Raymond!

This commit is contained in:
Guido van Rossum 2005-05-18 03:58:29 +00:00
parent 2dcf31c84a
commit 324efa3d31
1 changed files with 3 additions and 1 deletions

View File

@ -414,7 +414,9 @@ Examples
num *= x * x num *= x * x
sign *= -1 sign *= -1
s += num / fact * sign s += num / fact * sign
return +s # The "+s" rounds back to the original precision,
# so this must be outside the do-statement:
return +s
An alternative version of the generator saves the entire An alternative version of the generator saves the entire
context instead of just the precision attribute. This is more context instead of just the precision attribute. This is more