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

Function trace

Lib/_pyrepl/trace.py:20–25  ·  view source on GitHub ↗
(line: str, *k: object, **kw: object)

Source from the content-addressed store, hash-verified

18 from posix import _emscripten_log
19
20 def trace(line: str, *k: object, **kw: object) -> None:
21 if "PYREPL_TRACE" not in os.environ:
22 return
23 if k or kw:
24 line = line.format(*k, **kw)
25 _emscripten_log(line)
26
27else:
28 def trace(line: str, *k: object, **kw: object) -> None:

Callers 15

calc_screenMethod · 0.90
update_cursorMethod · 0.90
do_cmdMethod · 0.90
doMethod · 0.90
push_charMethod · 0.90
getpendingMethod · 0.90
get_terminal_keycodesFunction · 0.90
is_soft_keyword_usedFunction · 0.90
__init__Method · 0.90
insertMethod · 0.90
pushMethod · 0.90

Calls 3

formatMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…