def SETUP_EXCEPT(ctx: _VSContext, instruction: dis.Instruction):
"""
Sets a context up for an except.
"""
# Update the exception pointer with the calculated offset.
# This is where we will jump to if an error is encountered.
ctx.exc_next_pointer = get_instruction_index_by_offset(ctx, instruction)
return ctx
评论列表
文章目录