Return a list of records for the stack above the caller's frame.
(context=1)
| 1681 | return sys._getframe(1) if hasattr(sys, "_getframe") else None |
| 1682 | |
| 1683 | def stack(context=1): |
| 1684 | """Return a list of records for the stack above the caller's frame.""" |
| 1685 | return getouterframes(sys._getframe(1), context) |
| 1686 | |
| 1687 | def trace(context=1): |
| 1688 | """Return a list of records for the stack below the current exception.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…