bundles / IPython 9.12.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: FrameTypeThe frame object whose line number is to be determined.
Returns
: intThe 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