Return a list of records for the stack above the caller's frame.
(context=1)
| 1747 | return sys._getframe(1) if hasattr(sys, "_getframe") else None |
| 1748 | |
| 1749 | def stack(context=1): |
| 1750 | """Return a list of records for the stack above the caller's frame.""" |
| 1751 | return getouterframes(sys._getframe(1), context) |
| 1752 | |
| 1753 | def trace(context=1): |
| 1754 | """Return a list of records for the stack below the current exception.""" |
nothing calls this directly
no test coverage detected