diff --git a/docs/modules/math.md b/docs/modules/math.md index fb9a6609..94362a40 100644 --- a/docs/modules/math.md +++ b/docs/modules/math.md @@ -36,9 +36,9 @@ Return the floor of `x` as a float, the largest integer value less than or equal Return an accurate floating point sum of values in the iterable. Avoids loss of precision by tracking multiple intermediate partial sums: ``` ->>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) +>>> sum([0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]) 0.9999999999999999 ->>> fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) +>>> fsum([0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1]) 1.0 ``` diff --git a/python/builtins.py b/python/builtins.py index e12e0f8f..6df3b7c9 100644 --- a/python/builtins.py +++ b/python/builtins.py @@ -185,8 +185,6 @@ class property: def __init__(self, fget, fset=None): self.fget = fget self.fset = fset - if hasattr(fget, '__doc__'): - self.__doc__ = fget.__doc__ def __get__(self, obj): return self.fget(obj)