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

Function func_strip_path

Lib/pstats.py:581–583  ·  view source on GitHub ↗
(func_name)

Source from the content-addressed store, hash-verified

579# func_name is a triple (file:string, line:int, name:string)
580
581def func_strip_path(func_name):
582 filename, line, name = func_name
583 return os.path.basename(filename), line, name
584
585def func_get_function_name(func):
586 return func[2]

Callers 1

strip_dirsMethod · 0.85

Calls 1

basenameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…