Get current line number as an integer (1-based) Translated from PyFrame_GetLineNumber and PyCode_Addr2Line See Objects/lnotab_notes.txt
(self)
| 1027 | return self._frame.filename() |
| 1028 | |
| 1029 | def current_line_num(self): |
| 1030 | '''Get current line number as an integer (1-based) |
| 1031 | |
| 1032 | Translated from PyFrame_GetLineNumber and PyCode_Addr2Line |
| 1033 | |
| 1034 | See Objects/lnotab_notes.txt |
| 1035 | ''' |
| 1036 | if self.is_optimized_out(): |
| 1037 | return None |
| 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 |
nothing calls this directly
no test coverage detected