Frame objects

Frame objects represent execution frames. They may occur in traceback objects (see below).

f_lasti gives the precise instruction (this is an index into the bytecode string of the code object).

f_lineno is the current line number of the frame — writing to this from within a trace function jumps to the given line (only for the bottom-most frame). A debugger can implement a Jump command (aka Set Next Statement) by writing to f_lineno.

Traceback objects

sys.last_traceback.

try statement with no matching except clause or with a finally clause.

相关文章:

  • 2021-10-21
  • 2021-06-26
  • 2021-05-17
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-01-25
  • 2021-05-21
  • 2022-02-05
  • 2021-11-02
相关资源
相似解决方案