From: Raymond Hettinger Date: Tue, 11 Jan 2005 15:38:41 +0000 (+0000) Subject: SF bug #1099516: tempfile files not types.FileType X-Git-Tag: v2.4.1c1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe165c1d32f9b12fd1efb8e2f69fd331dec074b3;p=thirdparty%2FPython%2Fcpython.git SF bug #1099516: tempfile files not types.FileType Clarified that the returned object is file-like rather than an actual file. --- diff --git a/Lib/tempfile.py b/Lib/tempfile.py index ae2ed9e63973..dd7e8643e694 100644 --- a/Lib/tempfile.py +++ b/Lib/tempfile.py @@ -414,9 +414,9 @@ def NamedTemporaryFile(mode='w+b', bufsize=-1, suffix="", 'bufsize' -- the buffer size argument to os.fdopen (default -1). The file is created as mkstemp() would do it. - Returns a file object; the name of the file is accessible as - file.name. The file will be automatically deleted when it is - closed. + 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. """ if dir is None: @@ -451,8 +451,8 @@ else: 'bufsize' -- the buffer size argument to os.fdopen (default -1). The file is created as mkstemp() would do it. - Returns a file object. The file has no name, and will cease to - exist when it is closed. + Returns an object with a file-like interface. The file has no + name, and will cease to exist when it is closed. """ if dir is None: