Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _newname
Function
_newname
Lib/threading.py:847–848 ·
view source on GitHub ↗
(name_template)
Source
from the content-addressed store, hash-verified
845
# Helper to generate new thread names
846
_counter = _count(1).__next__
847
def
_newname(name_template):
848
return
name_template % _counter()
849
850
# Active thread administration.
851
#
Callers
2
__init__
Method · 0.85
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…