picop.cytraceback#

Fast traceback-object readers (CPython 3.8+).

picop.cytraceback.tb_check(tb)#

Return whether tb is a traceback object.

Parameters:

tb (object)

Return type:

bool

picop.cytraceback.tb_depth(tb)#

Return the number of traceback entries beginning with tb.

Parameters:

tb (object)

Return type:

int

picop.cytraceback.tb_frame(tb)#

Return the frame associated with tb.

Parameters:

tb (object)

Return type:

object

picop.cytraceback.tb_lasti(tb)#

Return the bytecode offset associated with tb.

Parameters:

tb (object)

Return type:

int

picop.cytraceback.tb_lineno(tb)#

Return the source line associated with tb.

Parameters:

tb (object)

Return type:

int

picop.cytraceback.tb_next(tb)#

Return the next traceback in tb’s chain, or None.

Parameters:

tb (object)

Return type:

object