Print lines of code from the current stack frame. Shows more lines than 'list' does.
(self, arg)
| 961 | return inspect.getblock(lines[lineno:]), lineno + 1 |
| 962 | |
| 963 | def do_longlist(self, arg): |
| 964 | """Print lines of code from the current stack frame. |
| 965 | |
| 966 | Shows more lines than 'list' does. |
| 967 | """ |
| 968 | self.lastcmd = "longlist" |
| 969 | try: |
| 970 | lines, lineno = self.getsourcelines(self.curframe) |
| 971 | except OSError as err: |
| 972 | self.error(str(err)) |
| 973 | return |
| 974 | last = lineno + len(lines) |
| 975 | assert self.curframe is not None |
| 976 | self.print_list_lines(self.curframe.f_code.co_filename, lineno, last) |
| 977 | |
| 978 | do_ll = do_longlist |
| 979 |
nothing calls this directly
no test coverage detected