summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-01-04 19:55:11 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-01-04 19:55:11 (GMT)
commitfa833950bf8c99ead3e4c793982716e684000b14 (patch)
tree57aa804f9814b8f15173cc84ef4015898c53ab2f /Doc/library
parent593d0f46703dd6bf3619ea7113d230a77d20778c (diff)
downloadcpython-fa833950bf8c99ead3e4c793982716e684000b14.zip
cpython-fa833950bf8c99ead3e4c793982716e684000b14.tar.gz
cpython-fa833950bf8c99ead3e4c793982716e684000b14.tar.bz2
Merged revisions 77300 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r77300 | antoine.pitrou | 2010-01-04 19:50:53 +0100 (lun., 04 janv. 2010) | 4 lines Issue #7631: Fix undefined references to the "built-in file object", which has ceased to be. ........
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/filesys.rst9
-rw-r--r--Doc/library/socket.rst12
-rw-r--r--Doc/library/tokenize.rst5
3 files changed, 13 insertions, 13 deletions
diff --git a/Doc/library/filesys.rst b/Doc/library/filesys.rst
index b341f5f..31eaf0d 100644
--- a/Doc/library/filesys.rst
+++ b/Doc/library/filesys.rst
@@ -26,14 +26,13 @@ in this chapter is:
.. seealso::
- Section :ref:`bltin-file-objects`
- A description of Python's built-in file objects.
-
Module :mod:`os`
Operating system interfaces, including functions to work with files at a lower
level than the built-in file object.
Module :mod:`io`
- Python's framework for dealing with I/O including reading and writing
- files.
+ Python's built-in I/O library, including both abstract classes and
+ some concrete classes such as file I/O.
+ Built-in function :func:`open`
+ The standard way to open files for reading and writing with Python.
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index fc447c5..60dc02e 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -569,14 +569,16 @@ correspond to Unix system calls applicable to sockets.
.. index:: single: I/O control; buffering
- Return a :dfn:`file object` associated with the socket. (File objects are
- described in :ref:`bltin-file-objects`.) The file object references a
- :cfunc:`dup`\ ped version of the socket file descriptor, so the file object
- and socket object may be closed or garbage-collected independently. The
- socket must be in blocking mode (it can not have a timeout). The optional
+ Return a :dfn:`file object` associated with the socket. The exact
+ returned type depends on the arguments given to :meth:`makefile`. These
arguments are interpreted the same way as by the built-in :func:`open`
function.
+ The returned file object references a :cfunc:`dup`\ ped version of the
+ socket file descriptor, so the file object and socket object may be
+ closed or garbage-collected independently. The socket must be in
+ blocking mode (it can not have a timeout).
+
.. method:: socket.recv(bufsize[, flags])
diff --git a/Doc/library/tokenize.rst b/Doc/library/tokenize.rst
index d66b07c..7017045 100644
--- a/Doc/library/tokenize.rst
+++ b/Doc/library/tokenize.rst
@@ -18,9 +18,8 @@ The primary entry point is a :term:`generator`:
The :func:`tokenize` generator requires one argument, *readline*, which
must be a callable object which provides the same interface as the
- :meth:`readline` method of built-in file objects (see section
- :ref:`bltin-file-objects`). Each call to the function should return one
- line of input as bytes.
+ :meth:`io.IOBase.readline` method of file objects. Each call to the
+ function should return one line of input as bytes.
The generator produces 5-tuples with these members: the token type; the
token string; a 2-tuple ``(srow, scol)`` of ints specifying the row and