MCPcopy Index your code
hub / github.com/RustPython/RustPython / extract

Function extract

Lib/_py_warnings.py:843–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

841 if coro.cr_origin is not None:
842 import linecache, traceback
843 def extract():
844 for filename, lineno, funcname in reversed(coro.cr_origin):
845 line = linecache.getline(filename, lineno)
846 yield (filename, lineno, funcname, line)
847 msg_lines.append("Coroutine created at (most recent call last)\n")
848 msg_lines += traceback.format_list(list(extract()))
849 msg = "".join(msg_lines).rstrip("\n")

Callers 6

test_extract_stackMethod · 0.85
test_extract_tbMethod · 0.85
test_format_exceptionMethod · 0.85
test_extract_stackMethod · 0.85
lookup_slot_in_mroMethod · 0.85

Calls 2

reversedFunction · 0.85
getlineMethod · 0.45

Tested by 4

test_extract_stackMethod · 0.68
test_extract_tbMethod · 0.68
test_format_exceptionMethod · 0.68
test_extract_stackMethod · 0.68