[Python-checkins] python/dist/src/Lib tempfile.py,1.60,1.60.4.1

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Jan 11 16:38:45 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23598

Modified Files:
      Tag: release24-maint
	tempfile.py 
Log Message:
SF bug #1099516:  tempfile files not types.FileType

Clarified that the returned object is file-like rather than an actual file.



Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.60
retrieving revision 1.60.4.1
diff -u -d -r1.60 -r1.60.4.1
--- tempfile.py	18 Jul 2004 23:58:16 -0000	1.60
+++ tempfile.py	11 Jan 2005 15:38:41 -0000	1.60.4.1
@@ -414,9 +414,9 @@
     '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 @@
         '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:



More information about the Python-checkins mailing list