Print a stack trace from its invocation point. The optional 'f' argument can be used to specify an alternate stack frame at which to start. The optional 'limit' and 'file' arguments have the same meaning as for print_exception().
(f=None, limit=None, file=None)
| 240 | # |
| 241 | |
| 242 | def print_stack(f=None, limit=None, file=None): |
| 243 | """Print a stack trace from its invocation point. |
| 244 | |
| 245 | The optional 'f' argument can be used to specify an alternate |
| 246 | stack frame at which to start. The optional 'limit' and 'file' |
| 247 | arguments have the same meaning as for print_exception(). |
| 248 | """ |
| 249 | if f is None: |
| 250 | f = sys._getframe().f_back |
| 251 | print_list(extract_stack(f, limit=limit), file=file) |
| 252 | |
| 253 | |
| 254 | def format_stack(f=None, limit=None): |
nothing calls this directly
no test coverage detected
searching dependent graphs…