MCPcopy Create free account
hub / github.com/numpy/numpy / make_temp_file

Function make_temp_file

numpy/distutils/misc_util.py:310–319  ·  view source on GitHub ↗
(suffix='', prefix='', text=True)

Source from the content-addressed store, hash-verified

308 return _fix_paths(paths, local_path, include_non_existing)
309
310def make_temp_file(suffix='', prefix='', text=True):
311 if not hasattr(_tdata, 'tempdir'):
312 _tdata.tempdir = tempfile.mkdtemp()
313 _tmpdirs.append(_tdata.tempdir)
314 fid, name = tempfile.mkstemp(suffix=suffix,
315 prefix=prefix,
316 dir=_tdata.tempdir,
317 text=text)
318 fo = os.fdopen(fid, 'w')
319 return fo, name
320
321# Hooks for colored terminal output.
322# See also https://web.archive.org/web/20100314204946/http://www.livinglogic.de/Python/ansistyle

Callers 3

temp_file_nameFunction · 0.90
get_flags_linker_soMethod · 0.90
dummy_fortran_fileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected