MCPcopy Create free account
hub / github.com/python/cpython / set_gen_qualname

Function set_gen_qualname

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

Source from the content-addressed store, hash-verified

26 return g.__name__
27
28def set_gen_qualname(g, b):
29 b.wait()
30 random_sleep()
31 g.__qualname__ = random_string()
32 return g.__qualname__
33
34
35@unittest.skipUnless(Py_GIL_DISABLED, "Enable only in FT build")

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…