Staging
v0.5.1
https://github.com/python/cpython
Revision 9d26f81b900ec7a57bd300cdc65f441a41cf4bf2 authored by Fred Drake on 03 June 2001, 03:16:04 UTC, committed by Fred Drake on 03 June 2001, 03:16:04 UTC
In particular, the affect on existing list content was not sufficiently
explained.

This closes SF bug #429554.
1 parent 3da898b
Raw File
Tip revision: 9d26f81b900ec7a57bd300cdc65f441a41cf4bf2 authored by Fred Drake on 03 June 2001, 03:16:04 UTC
Explained more differences between PyList_SetItem() and PyList_SET_ITEM().
Tip revision: 9d26f81
libgopherlib.tex
\section{\module{gopherlib} ---
         Gopher protocol client}

\declaremodule{standard}{gopherlib}
\modulesynopsis{Gopher protocol client (requires sockets).}

\indexii{Gopher}{protocol}

This module provides a minimal implementation of client side of the
the Gopher protocol.  It is used by the module \refmodule{urllib} to
handle URLs that use the Gopher protocol.

The module defines the following functions:

\begin{funcdesc}{send_selector}{selector, host\optional{, port}}
Send a \var{selector} string to the gopher server at \var{host} and
\var{port} (default \code{70}).  Returns an open file object from
which the returned document can be read.
\end{funcdesc}

\begin{funcdesc}{send_query}{selector, query, host\optional{, port}}
Send a \var{selector} string and a \var{query} string to a gopher
server at \var{host} and \var{port} (default \code{70}).  Returns an
open file object from which the returned document can be read.
\end{funcdesc}

Note that the data returned by the Gopher server can be of any type,
depending on the first character of the selector string.  If the data
is text (first character of the selector is \samp{0}), lines are
terminated by CRLF, and the data is terminated by a line consisting of
a single \samp{.}, and a leading \samp{.} should be stripped from
lines that begin with \samp{..}.  Directory listings (first character
of the selector is \samp{1}) are transferred using the same protocol.
back to top