MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_candidate_names

Function _get_candidate_names

Lib/tempfile.py:230–241  ·  view source on GitHub ↗

Common setup sequence for all user-callable interfaces.

()

Source from the content-addressed store, hash-verified

228_name_sequence = None
229
230def _get_candidate_names():
231 """Common setup sequence for all user-callable interfaces."""
232
233 global _name_sequence
234 if _name_sequence is None:
235 _once_lock.acquire()
236 try:
237 if _name_sequence is None:
238 _name_sequence = _RandomNameSequence()
239 finally:
240 _once_lock.release()
241 return _name_sequence
242
243
244def _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