thread_tools.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:cpy2py 作者: maxfischer2781 项目源码 文件源码
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.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号