summaryrefslogtreecommitdiff
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-22 10:10:00 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-02-22 10:10:00 +0000
commit1f0e1f3cbbb5205b3c6787da268051f84b338739 (patch)
tree4bee3f6e635c3bf60a7875da66e79fd6306f3358 /Lib/tempfile.py
parent1c5e715d8fac43ecf0dc9e13192b389910ae22e3 (diff)
downloadcpython-git-1f0e1f3cbbb5205b3c6787da268051f84b338739.tar.gz
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index d381a25dd1..c39820e198 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -533,8 +533,8 @@ def NamedTemporaryFile(mode='w+b', buffering=-1, encoding=None,
The file is created as mkstemp() would do it.
Returns an object with a file-like interface; the name of the file
- is accessible as file.name. The file will be automatically deleted
- when it is closed unless the 'delete' argument is set to False.
+ is accessible as its 'name' attribute. The file will be automatically
+ deleted when it is closed unless the 'delete' argument is set to False.
"""
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)