Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1b - Decimal:
27
| def get_caller(depth: int = 1): | |
| """Returns the caller frame at the given depth.""" | |
| import inspect | |
| from collections import namedtuple | |
| frame = inspect.currentframe() | |
| assert frame is not None | |
| if frame.f_back is None: |