Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ count
Method
count
Lib/test/test_free_threading/test_races.py:276–279 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
274
def
test_racing_recursion_limit(self):
275
def
something_recursive():
276
def
count(n):
277
if
n > 0:
278
return
count(n - 1) + 1
279
return
0
280
281
count(50)
282
Callers
15
test_null_terminator
Method · 0.45
_wait_for_n_signals
Function · 0.45
test_cache_exhaustion
Method · 0.45
_shutdown_all_methods_in_many_threads
Method · 0.45
test_reentrancy
Method · 0.45
test_deprecated_option
Method · 0.45
test_deprecated_boolean_option
Method · 0.45
test_deprecated_arguments
Method · 0.45
test_deprecated_varargument
Method · 0.45
test_deprecated_subparser
Method · 0.45
test_count
Method · 0.45
test_contains_count_index_stop_crashes
Method · 0.45
Calls
1
count
Function · 0.85
Tested by
no test coverage detected