Stats

61 Contributors: 4 Friday, February 17, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

tempfile NamedTemporaryFile

Parameters

paramdescription
modemode to open file, default=w+b
deleteTo delete file on closure, default=True
suffixfilename suffix, default=''
prefixfilename prefix, default='tmp'
dirdirname to place tempfile, default=None
buffsizedefault=-1, (operating system default used)

Related Examples