apipkg.py 文件源码

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

项目:py 作者: pytest-dev 项目源码 文件源码
def __dict__(self):
        # force all the content of the module
        # to be loaded when __dict__ is read
        dictdescr = ModuleType.__dict__['__dict__']
        dict = dictdescr.__get__(self)
        if dict is not None:
            hasattr(self, 'some')
            for name in self.__all__:
                try:
                    self.__makeattr(name)
                except AttributeError:
                    pass
        return dict
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号