def __init__(self, start=0.0, lock_type=Lock):
if isinstance(start, stringabc):
try:
start = ast.literal_eval(start)
except ValueError:
pass
self.__wrapped__ = start
self._lock = lock_type()
# Developer note:
# operations are implemented using operator.__add__(self._value, other)
# instead of self._value.__add__(other) as the later does *not* imply
# calling other.__radd__(self._value) on failure.
评论列表
文章目录