MCPcopy 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

Calls 1

countFunction · 0.85

Tested by

no test coverage detected