diff options
author | Fred Drake <fdrake@acm.org> | 1999-08-05 13:41:04 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-08-05 13:41:04 (GMT) |
commit | a94f6762bc98dc834ff0a759e118066012f7cbd4 (patch) | |
tree | d6ba6a88330f0489a26db6028053ab4fcd3d78e1 /Doc/lib | |
parent | 933c91ebcf476df9a4be51fe13a8e9702b5c82b3 (diff) | |
download | cpython-a94f6762bc98dc834ff0a759e118066012f7cbd4.zip cpython-a94f6762bc98dc834ff0a759e118066012f7cbd4.tar.gz cpython-a94f6762bc98dc834ff0a759e118066012f7cbd4.tar.bz2 |
Add index entry "I/O control, buffering" for makefile().
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libsocket.tex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 64a659a..2639f4e 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -199,7 +199,7 @@ This is a Python type object that represents the socket object type. It is the same as \code{type(socket(...))}. \end{datadesc} -\subsection{Socket Objects} +\subsection{Socket Objects \label{socket-objects}} Socket objects have the following methods. Except for \method{makefile()} these correspond to \UNIX{} system calls @@ -279,10 +279,11 @@ least 1; the maximum value is system-dependent (usually 5). \begin{methoddesc}[socket]{makefile}{\optional{mode\optional{, bufsize}}} Return a \dfn{file object} associated with the socket. (File objects -were described earlier in \ref{bltin-file-objects}, ``File Objects.'') +are described in \ref{bltin-file-objects}, ``File Objects.'') The file object references a \cfunction{dup()}ped version of the socket file descriptor, so the file object and socket object may be -closed or garbage-collected independently. The optional \var{mode} +closed or garbage-collected independently. +\index{I/O control!buffering}The optional \var{mode} and \var{bufsize} arguments are interpreted the same way as by the built-in \function{open()} function. \end{methoddesc} |