Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
381
def
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
389
def
protect(f, p):
Callers
15
foo
Method · 0.85
add_event
Method · 0.85
get_events
Method · 0.85
test_simple
Method · 0.85
test_exception
Method · 0.85
test_caught_exception
Method · 0.85
test_caught_nested_exception
Method · 0.85
test_nested_exception
Method · 0.85
test_exception_in_except_clause
Method · 0.85
test_exception_propagation
Method · 0.85
test_raise_twice
Method · 0.85
test_raise_reraise
Method · 0.85
Calls
1
hasattr
Function · 0.85
Tested by
no test coverage detected