instructions.py 文件源码

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

项目:Vanstein 作者: SunDwarf 项目源码 文件源码
def LOAD_GLOBAL(ctx: _VSContext, instruction: dis.Instruction):
    """
    Loads a global from `ctx.__globals__`.
    """
    name = ctx.co_names[instruction.arg]
    try:
        item = ctx.get_global(name)
    except KeyError:
        # todo: safe_raise
        return safe_raise(ctx, NameError("name '{}' is not defined".format(name)))

    ctx.push(item)
    return ctx
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号