MCPcopy Index your code
hub / github.com/python/cpython / current_line

Method current_line

Tools/gdb/libpython.py:1040–1045  ·  view source on GitHub ↗

Get the text of the current source line as a string, with a trailing newline character

(self)

Source from the content-addressed store, hash-verified

1038 return self._frame.current_line_num()
1039
1040 def current_line(self):
1041 '''Get the text of the current source line as a string, with a trailing
1042 newline character'''
1043 if self.is_optimized_out():
1044 return FRAME_INFO_OPTIMIZED_OUT
1045 return self._frame.current_line()
1046
1047 def write_repr(self, out, visited):
1048 if self.is_optimized_out():

Callers

nothing calls this directly

Calls 2

is_optimized_outMethod · 0.45
current_lineMethod · 0.45

Tested by

no test coverage detected