Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ random_name
Method
random_name
Lib/test/test_descr.py:853–854 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
851
852
# Issue 34805: Verify that definition order is retained
853
def
random_name():
854
return
''
.join(random.choices(string.ascii_letters, k=10))
855
class
A:
856
pass
857
subclasses = [type(random_name(), (A,), {})
for
i in range(100)]
Callers
nothing calls this directly
Calls
2
choices
Method · 0.80
join
Method · 0.45
Tested by
no test coverage detected