vm.py 文件源码

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

项目:PyVyM 作者: ssarangi 项目源码 文件源码
def get_opcode(self):
        # Based on the settings decide to show the line-by-line trace
        # Get the current line being executed

        ip = self.__ip

        op = self.__code[self.__ip]
        ip += 1
        opmethod = "execute_%s" % dis.opname[op]

        oparg = None
        if op >= dis.HAVE_ARGUMENT:
            low = self.__code[ip]
            high = self.__code[ip + 1]
            oparg = (high << 8) | low

        return opmethod, oparg
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号