Return true if current stack depth is within 100 of maximum limit.
()
| 175 | |
| 176 | |
| 177 | def nearing_recursion_limit() -> bool: |
| 178 | """Return true if current stack depth is within 100 of maximum limit.""" |
| 179 | return sys.getrecursionlimit() - _get_stack_depth() < 100 |
| 180 | |
| 181 | |
| 182 | # MISC AUXILIARY CLASSES |
nothing calls this directly
no test coverage detected