MCPcopy Index your code
hub / github.com/ipython/ipython / _cached_one_parent_frame_debuggerskip

Method _cached_one_parent_frame_debuggerskip

IPython/core/debugger.py:1118–1131  ·  view source on GitHub ↗

Cache looking up for DEBUGGERSKIP on parent frame. This should speedup walking through deep frame when one of the highest one does have a debugger skip. This is likely to introduce fake positive though.

(self, frame)

Source from the content-addressed store, hash-verified

1116
1117 @lru_cache(1024)
1118 def _cached_one_parent_frame_debuggerskip(self, frame):
1119 """
1120 Cache looking up for DEBUGGERSKIP on parent frame.
1121
1122 This should speedup walking through deep frame when one of the highest
1123 one does have a debugger skip.
1124
1125 This is likely to introduce fake positive though.
1126 """
1127 while getattr(frame, "f_back", None):
1128 frame = frame.f_back
1129 if self._get_frame_locals(frame).get(DEBUGGERSKIP):
1130 return True
1131 return None
1132
1133 @lru_cache(1024)
1134 def _cachable_skip(self, frame):

Callers 1

_cachable_skipMethod · 0.95

Calls 2

_get_frame_localsMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected