]> granicus.if.org Git - python/commitdiff
Mention the new file() builtin in the section on file objects.
authorTim Peters <tim.peters@gmail.com>
Tue, 30 Oct 2001 05:54:04 +0000 (05:54 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 30 Oct 2001 05:54:04 +0000 (05:54 +0000)
Doc/lib/libstdtypes.tex

index 765ba94b336a2b98f09d3d30b210530653c42791..f1684d3670403be4cd3727cbda45c88d1ddc093c 100644 (file)
@@ -1187,9 +1187,12 @@ It is written as \code{Ellipsis}.
                \label{bltin-file-objects}}
 
 File objects are implemented using C's \code{stdio} package and can be
-created with the built-in function
-\function{open()}\bifuncindex{open} described in section 
-\ref{built-in-funcs}, ``Built-in Functions.''  They are also returned
+created with the built-in constructor
+\function{file()}\bifuncindex{file} described in section 
+\ref{built-in-funcs}, ``Built-in Functions.''\footnote{\function{file()}
+is new in Python 2.2.  The older built-in \function{open()} is an
+alias for \function{file()}.}
+They are also returned
 by some other built-in functions and methods, such as
 \function{os.popen()} and \function{os.fdopen()} and the
 \method{makefile()} method of socket objects.