]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
NamedTemporaryFile: clarify behavior based on confusions noted by a
authorTim Peters <tim.peters@gmail.com>
Thu, 21 Nov 2002 16:32:11 +0000 (16:32 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 21 Nov 2002 16:32:11 +0000 (16:32 +0000)
user, and spell out a x-platform use limitation.

Doc/lib/libtempfile.tex

index c56110d76e9be3f5f39f75701decc3f10fb166fa..8bc9b4e960b8cd587601d348d3fa3f4f15dd1c09 100644 (file)
@@ -59,8 +59,11 @@ The \var{dir}, \var{prefix} and \var{suffix} parameters are passed to
                                     \optional{, dir}}
 This function operates exactly as \function{TemporaryFile} does,
 except that the file is guaranteed to have a visible name in the file
-system.  That name can be retrieved from the \member{name} member of
-the file object.
+system (on \UNIX, the directory entry is not unlinked).  That name can
+be retrieved from the \member{name} member of the file object.  Whether
+the name can be used to open the file a second time, while the
+named temporary file is still open, varies across platforms (it can
+be so used on \UNIX; it cannot on Windows NT or later).
 \versionadded{2.3}
 \end{funcdesc}