importutils.py 文件源码

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

项目:figura 作者: shx2 项目源码 文件源码
def __exit__(self, exc_type, exc_val, exc_tb):
        if self.cleanup_import_caches:
            # remove all modules which got added to sys.modules in this import, to
            # ensure the next time we are here, they get reloaded.
            self._restore_dict(sys.modules, 'modules')
            self._restore_dict(sys.path_importer_cache, 'path_importer_cache')

        sys.dont_write_bytecode = self.prev_dont_write_bytecode
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号