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

Function ident

Lib/test/test_sys_setprofile.py:381–386  ·  view source on GitHub ↗
(function)

Source from the content-addressed store, hash-verified

379
380
381def ident(function):
382 if hasattr(function, "f_code"):
383 code = function.f_code
384 else:
385 code = function.__code__
386 return code.co_firstlineno, code.co_name
387
388
389def protect(f, p):

Callers 15

fooMethod · 0.85
add_eventMethod · 0.85
get_eventsMethod · 0.85
test_simpleMethod · 0.85
test_exceptionMethod · 0.85
test_caught_exceptionMethod · 0.85
test_nested_exceptionMethod · 0.85
test_raise_twiceMethod · 0.85
test_raise_reraiseMethod · 0.85

Calls 1

hasattrFunction · 0.85

Tested by

no test coverage detected