server.py 文件源码

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

项目:sadm 作者: prologin 项目源码 文件源码
def __init__(cls, name, bases, dct):
        super(MethodCollection, cls).__init__(name, bases, dct)

        # Build the list of remote methods.
        remote_methods = {}
        for name, obj in dct.items():
            if is_remote_method(obj):
                if not inspect.iscoroutinefunction(obj):
                    raise RuntimeError("Remote method {} is not a coroutine"
                                       .format(obj))
                remote_methods[name] = obj
        cls.REMOTE_METHODS = remote_methods
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号