extension.py 文件源码

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

项目:yuuno 作者: Irrational-Encoding-Wizardry 项目源码 文件源码
def _update_core_values(name=None):
        def _func(self, change=None):
            core = get_proxy_or_core()

            if name is None:
                core.num_threads = self.core_num_threads
                core.add_cache = self.core_add_cache
                core.accept_lowercase = self.core_accept_lowercase

                # There is no obvious default for max_cache_size
                if self.core_max_cache_size is not None:
                    core.max_cache_size = self.core_max_cache_size

            else:
                setattr(core, name, change.new)
        return _func
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号