blueloveTH 2 anni fa
parent
commit
6416c58b85
2 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 2
      docs/modules/math.md
  2. 0 2
      python/builtins.py

+ 2 - 2
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
 ```
 

+ 0 - 2
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)