summaryrefslogtreecommitdiffstats
path: root/Doc/library/tempfile.rst
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-22 10:10:00 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-22 10:10:00 (GMT)
commit1f0e1f3cbbb5205b3c6787da268051f84b338739 (patch)
tree4bee3f6e635c3bf60a7875da66e79fd6306f3358 /Doc/library/tempfile.rst
parent1c5e715d8fac43ecf0dc9e13192b389910ae22e3 (diff)
downloadcpython-1f0e1f3cbbb5205b3c6787da268051f84b338739.zip
cpython-1f0e1f3cbbb5205b3c6787da268051f84b338739.tar.gz
cpython-1f0e1f3cbbb5205b3c6787da268051f84b338739.tar.bz2
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r--Doc/library/tempfile.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 19e1e7f..b714d0f 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -74,7 +74,8 @@ The module defines the following user-callable items:
This function operates exactly as :func:`TemporaryFile` does, except that
the file is guaranteed to have a visible name in the file system (on
Unix, the directory entry is not unlinked). That name can be retrieved
- from the :attr:`name` attribute of the file object. Whether the name can be
+ from the :attr:`name` attribute of the returned
+ file-like 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). If *delete* is true (the default), the file is