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

Function ident

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

Source from the content-addressed store, hash-verified

401
402
403def ident(function):
404 if hasattr(function, "f_code"):
405 code = function.f_code
406 else:
407 code = function.__code__
408 return code.co_firstlineno, code.co_name
409
410
411def 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

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…