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

Function get_ident

Lib/_dummy_thread.py:136–143  ·  view source on GitHub ↗

Dummy implementation of _thread.get_ident(). Since this module should only be used when _threadmodule is not available, it is safe to assume that the current process is the only thread. Thus a constant can be safely returned.

()

Source from the content-addressed store, hash-verified

134
135
136def get_ident():
137 """Dummy implementation of _thread.get_ident().
138
139 Since this module should only be used when _threadmodule is not
140 available, it is safe to assume that the current process is the
141 only thread. Thus a constant can be safely returned.
142 """
143 return _MAIN_THREAD_IDENT
144
145
146def allocate_lock():

Callers 12

wrapperFunction · 0.90
acquireMethod · 0.70
releaseMethod · 0.70
_is_ownedMethod · 0.70
_recursion_countMethod · 0.70
_set_identMethod · 0.70
_deleteMethod · 0.70
nameMethod · 0.70
excepthookFunction · 0.70
current_threadFunction · 0.70
_after_forkFunction · 0.70
__repr__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected