You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / core / tbtools / get_line_number_of_frame

function

IPython.core.tbtools:get_line_number_of_frame

source: /IPython/core/tbtools.py :41

Signature

def   get_line_number_of_frame ( frame : types.FrameType )  →  int

Summary

Given a frame object, returns the total number of lines in the file containing the frame's code object, or the number of lines in the frame's source code if the file is not available.

Parameters

frame : FrameType

The frame object whose line number is to be determined.

Returns

: int

The total number of lines in the file containing the frame's code object, or the number of lines in the frame's source code if the file is not available.

Aliases

  • IPython.core.doctb.get_line_number_of_frame