MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _next_external_frame

Function _next_external_frame

tools/python-3.11.9-amd64/Lib/warnings.py:279–284  ·  view source on GitHub ↗

Find the next frame that doesn't involve CPython internals.

(frame)

Source from the content-addressed store, hash-verified

277
278
279def _next_external_frame(frame):
280 """Find the next frame that doesn't involve CPython internals."""
281 frame = frame.f_back
282 while frame is not None and _is_internal_frame(frame):
283 frame = frame.f_back
284 return frame
285
286
287# Code typically replaced by _warnings

Callers 1

warnFunction · 0.85

Calls 1

_is_internal_frameFunction · 0.70

Tested by

no test coverage detected