base.py 文件源码

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

项目:django-estimators 作者: fridiculous 项目源码 文件源码
def persist(self):
        """a private method that persists an estimator object to the filesystem"""
        if self.object_hash:
            data = dill.dumps(self.object_property)
            f = ContentFile(data)
            self.object_file.save(self.object_hash, f, save=False)
            f.close()
            self._persisted = True
        return self._persisted
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号