select_trigger.py 文件源码

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

项目:ZServer 作者: zopefoundation 项目源码 文件源码
def handle_read(self):
            self.recv(8192)
            try:
                self.lock.acquire()
                for thunk in self.thunks:
                    try:
                        thunk()
                    except:
                        (file, fun, line), t, v, tbinfo = \
                            asyncore.compact_traceback()
                        print('exception in trigger thunk: (%s:%s %s)' % (
                              t, v, tbinfo))
                self.thunks = []
            finally:
                self.lock.release()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号