From: Skip Montanaro Date: Mon, 6 Nov 2006 14:34:52 +0000 (+0000) Subject: note that user can control directory location even if default dir is used X-Git-Tag: v2.6a1~2463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3230599329c163261b7dcbddd2151d2de3720a55;p=thirdparty%2FPython%2Fcpython.git note that user can control directory location even if default dir is used --- diff --git a/Doc/lib/libtempfile.tex b/Doc/lib/libtempfile.tex index 9da86632807e..9b4d8488b85b 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