Return a list of records for the stack below the current exception.
(context=1)
| 1661 | return getouterframes(sys._getframe(1), context) |
| 1662 | |
| 1663 | def trace(context=1): |
| 1664 | """Return a list of records for the stack below the current exception.""" |
| 1665 | exc = sys.exception() |
| 1666 | tb = None if exc is None else exc.__traceback__ |
| 1667 | return getinnerframes(tb, context) |
| 1668 | |
| 1669 | |
| 1670 | # ------------------------------------------------ static version of getattr |
nothing calls this directly
no test coverage detected