summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
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 /Lib/tempfile.py
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 '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 d381a25..c39820e 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)