bottle.py 文件源码

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

项目:Mmrz-Sync 作者: zhanglintc 项目源码 文件源码
def __setattr__(self, key, value):
            if key in ('_config', '_prefix'):
                self.__dict__[key] = value
                return
            depr('Attribute assignment is deprecated.') #0.12
            if hasattr(DictMixin, key):
                raise AttributeError('Read-only attribute.')
            if key in self and self[key] and isinstance(self[key], self.__class__):
                raise AttributeError('Non-empty namespace attribute.')
            self[key] = value
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号