attrs_extra.py 文件源码

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

项目:pillar 作者: armadillica 项目源码 文件源码
def log(name):
    """Returns a logger attr.ib

    :param name: name to pass to logging.getLogger()
    :rtype: attr.ib
    """
    return attr.ib(default=logging.getLogger(name),
                   repr=False,
                   hash=False,
                   cmp=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号