Version 1 (modified by 13 years ago) ( diff ) | ,
---|
NamedTemporaryFile
The NamedTemporaryFile module provides a handle on a temporary file that can be re-opened on any platform. For most platforms, this is just a thin layer over the standard Python tempfile.TemporaryFile class, but MS Windows users are given a custom class with similar properties. This is needed because in Windows NT, the default implementation of NamedTemporaryFile uses the O_TEMPORARY flag, and thus cannot be reopened.
It accepts the same parameters as its python counterpart.
NamedTemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='', dir=None)
Note:
See TracWiki
for help on using the wiki.