summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2006-11-06 14:35:34 (GMT)
committerSkip Montanaro <skip@pobox.com>2006-11-06 14:35:34 (GMT)
commitda65c6496d0f28b704f32d1788b2f9c0a95d852d (patch)
tree7214cf9bd01d8ff16061e8bcc4e827d530021e00
parenta3ce6aa8b73ef32865c5d42fea61d045e3ce8d4e (diff)
downloadcpython-da65c6496d0f28b704f32d1788b2f9c0a95d852d.zip
cpython-da65c6496d0f28b704f32d1788b2f9c0a95d852d.tar.gz
cpython-da65c6496d0f28b704f32d1788b2f9c0a95d852d.tar.bz2
backport: note that user can control directory location even if default dir is used
-rw-r--r--Doc/lib/libtempfile.tex7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/lib/libtempfile.tex b/Doc/lib/libtempfile.tex
index 9da8663..9b4d848 100644
--- a/Doc/lib/libtempfile.tex
+++ b/Doc/lib/libtempfile.tex
@@ -86,7 +86,12 @@ If \var{prefix} is specified, the file name will begin with that
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