Changes between Initial Version and Version 1 of NamedTemporaryFile


Ignore:
Timestamp:
Apr 11, 2012, 9:40:34 AM (12 years ago)
Author:
hermanschaaf
Comment:

My first addition to the Django docs, so all the links and code snippets are not standard - please help correct. In any case, this serves as a first version for this file.

Legend:

Unmodified
Added
Removed
Modified
  • NamedTemporaryFile

    v1 v1  
     1
     2== NamedTemporaryFile ==
     3
     4The 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 [http://mail.python.org/pipermail/python-list/2005-December/359474.html cannot be reopened].
     5
     6It accepts the same parameters as its python counterpart.
     7
     8{{{
     9NamedTemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='', dir=None)
     10}}}
Back to Top