Mention the new file() builtin in the section on file objects.

This commit is contained in:
Tim Peters 2001-10-30 05:54:04 +00:00
parent 9e6a399b14
commit 003047a5f2
1 changed files with 6 additions and 3 deletions

View File

@ -1187,9 +1187,12 @@ It is written as \code{Ellipsis}.
\label{bltin-file-objects}} \label{bltin-file-objects}}
File objects are implemented using C's \code{stdio} package and can be File objects are implemented using C's \code{stdio} package and can be
created with the built-in function created with the built-in constructor
\function{open()}\bifuncindex{open} described in section \function{file()}\bifuncindex{file} described in section
\ref{built-in-funcs}, ``Built-in Functions.'' They are also returned \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 by some other built-in functions and methods, such as
\function{os.popen()} and \function{os.fdopen()} and the \function{os.popen()} and \function{os.fdopen()} and the
\method{makefile()} method of socket objects. \method{makefile()} method of socket objects.