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

Function _get_candidate_names

Lib/tempfile.py:228–239  ·  view source on GitHub ↗

Common setup sequence for all user-callable interfaces.

()

Source from the content-addressed store, hash-verified

226_name_sequence = None
227
228def _get_candidate_names():
229 """Common setup sequence for all user-callable interfaces."""
230
231 global _name_sequence
232 if _name_sequence is None:
233 _once_lock.acquire()
234 try:
235 if _name_sequence is None:
236 _name_sequence = _RandomNameSequence()
237 finally:
238 _once_lock.release()
239 return _name_sequence
240
241
242def _mkstemp_inner(dir, pre, suf, flags, output_type):

Callers 3

_mkstemp_innerFunction · 0.85
mkdtempFunction · 0.85
mktempFunction · 0.85

Calls 3

_RandomNameSequenceClass · 0.85
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…