NamedTemporaryFile: clarify behavior based on confusions noted by a

user, and spell out a x-platform use limitation.
This commit is contained in:
Tim Peters 2002-11-21 16:32:11 +00:00
parent 97701b507b
commit 3350b5bfd9
1 changed files with 5 additions and 2 deletions

View File

@ -59,8 +59,11 @@ The \var{dir}, \var{prefix} and \var{suffix} parameters are passed to
\optional{, dir}} \optional{, dir}}
This function operates exactly as \function{TemporaryFile} does, This function operates exactly as \function{TemporaryFile} does,
except that the file is guaranteed to have a visible name in the file 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 system (on \UNIX, the directory entry is not unlinked). That name can
the file object. 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} \versionadded{2.3}
\end{funcdesc} \end{funcdesc}