mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
6ee43311ea
commit
6416c58b85
@ -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
|
||||
```
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user