_commonstore.py 文件源码

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

项目:provenance 作者: bmabey 项目源码 文件源码
def chained_contains(chained, id, contains=op.contains):
    stores_with_read = [s for s in chained.stores if s._read]
    if len(stores_with_read) == 0:
        raise PermissionError('contains', chained, 'read')

    for store in stores_with_read:
        if store._read and contains(store, id):
            return True
    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号