MCPcopy Index your code
hub / github.com/python/cpython / set_gen_name

Function set_gen_name

Lib/test/test_free_threading/test_generators.py:22–26  ·  view source on GitHub ↗
(g, b)

Source from the content-addressed store, hash-verified

20 return ''.join(random.choice('0123456789ABCDEF') for _ in range(10))
21
22def set_gen_name(g, b):
23 b.wait()
24 random_sleep()
25 g.__name__ = random_string()
26 return g.__name__
27
28def set_gen_qualname(g, b):
29 b.wait()

Callers

nothing calls this directly

Calls 3

random_sleepFunction · 0.85
random_stringFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…