summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-30 05:54:04 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-30 05:54:04 (GMT)
commit003047a5f2e1566f70dc2f001c0f43e8059c02e3 (patch)
tree855c4e113103fb11228329db3a63e1447849f45e /Doc
parent9e6a399b144fe1724bfcb4394d9355ac6998c029 (diff)
downloadcpython-003047a5f2e1566f70dc2f001c0f43e8059c02e3.zip
cpython-003047a5f2e1566f70dc2f001c0f43e8059c02e3.tar.gz
cpython-003047a5f2e1566f70dc2f001c0f43e8059c02e3.tar.bz2
Mention the new file() builtin in the section on file objects.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index 765ba94..f1684d3 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -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.