MCPcopy Index your code
hub / github.com/python/cpython / _format_stack_entry

Function _format_stack_entry

Lib/asyncio/tools.py:28–34  ·  view source on GitHub ↗
(elem: str|FrameInfo)

Source from the content-addressed store, hash-verified

26
27# ─── indexing helpers ───────────────────────────────────────────
28def _format_stack_entry(elem: str|FrameInfo) -> str:
29 if not isinstance(elem, str):
30 if elem.location.lineno == 0 and elem.filename == "":
31 return f"{elem.funcname}"
32 else:
33 return f"{elem.funcname} {elem.filename}:{elem.location.lineno}"
34 return elem
35
36
37def _index(result):

Callers 2

_indexFunction · 0.85
build_task_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…