diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-22 10:10:00 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-22 10:10:00 (GMT) |
commit | be9ddc1d113026f9f5bd9a3f1eda1d56d47b60e8 (patch) | |
tree | 5dd4a16b60880f718a2c52456abacab3c38c225d /Lib | |
parent | 3e85838ee9e54c04d8f0fc337672dc9a10aa5e41 (diff) | |
download | cpython-be9ddc1d113026f9f5bd9a3f1eda1d56d47b60e8.zip cpython-be9ddc1d113026f9f5bd9a3f1eda1d56d47b60e8.tar.gz cpython-be9ddc1d113026f9f5bd9a3f1eda1d56d47b60e8.tar.bz2 |
Issue #26261: Clarify NamedTemporaryFile name attribute vs file.name
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/tempfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 184dfc1..8a2e9cd 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -455,8 +455,8 @@ def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="", 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. """ if dir is None: |