Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _recursion_count
Method
_recursion_count
Lib/threading.py:263–266 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
261
# Internal method used for reentrancy checks
262
263
def
_recursion_count(self):
264
if
self._owner != get_ident():
265
return
0
266
return
self._count
267
268
_PyRLock = _RLock
269
Callers
3
test_recursion_count
Method · 0.80
_stop_locked
Method · 0.80
_ensure_running_and_write
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_recursion_count
Method · 0.64