[Python-checkins] r52632 - python/branches/release25-maint/Doc/lib/libtempfile.tex

skip.montanaro python-checkins at python.org
Mon Nov 6 15:35:35 CET 2006


Author: skip.montanaro
Date: Mon Nov  6 15:35:34 2006
New Revision: 52632

Modified:
   python/branches/release25-maint/Doc/lib/libtempfile.tex
Log:
backport: note that user can control directory location even if default dir is used

Modified: python/branches/release25-maint/Doc/lib/libtempfile.tex
==============================================================================
--- python/branches/release25-maint/Doc/lib/libtempfile.tex	(original)
+++ python/branches/release25-maint/Doc/lib/libtempfile.tex	Mon Nov  6 15:35:34 2006
@@ -86,7 +86,12 @@
 prefix; otherwise, a default prefix is used.
 
 If \var{dir} is specified, the file will be created in that directory;
-otherwise, a default directory is used.
+otherwise, a default directory is used.  The default directory is chosen
+from a platform-dependent list, but the user of the application can control
+the directory location by setting the \var{TMPDIR}, \var{TEMP} or \var{TMP}
+environment variables.  There is thus no guarantee that the generated
+filename will have any nice properties, such as not requiring quoting when
+passed to external commands via \code{os.popen()}.
 
 If \var{text} is specified, it indicates whether to open the file in
 binary mode (the default) or text mode.  On some platforms, this makes


More information about the Python-checkins mailing list