Mercurial > cpython-lru_cache-weakref
annotate Doc/libgopherlib.tex @ 5792:dffabc620e4e legacy-trunk
Tweak re_tests and test_re to differentiate between
groups that have no value and groups that are out of bounds.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 15 Jul 1997 15:49:52 +0000 |
| parents | 31777622ae93 |
| children | 3468ea8645ca |
| rev | line source |
|---|---|
|
2576
f47bc5554418
mass changes; fix titles; add examples; correct typos; clarifications;
Guido van Rossum <guido@python.org>
parents:
2453
diff
changeset
|
1 \section{Standard Module \sectcode{gopherlib}} |
| 2449 | 2 \stmodindex{gopherlib} |
|
2453
cdd3a721b40e
a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter
Guido van Rossum <guido@python.org>
parents:
2449
diff
changeset
|
3 |
|
cdd3a721b40e
a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter
Guido van Rossum <guido@python.org>
parents:
2449
diff
changeset
|
4 \renewcommand{\indexsubitem}{(in module gopherlib)} |
|
cdd3a721b40e
a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter
Guido van Rossum <guido@python.org>
parents:
2449
diff
changeset
|
5 |
| 2596 | 6 This module provides a minimal implementation of client side of the |
| 7 the Gopher protocol. It is used by the module \code{urllib} to handle | |
| 8 URLs that use the Gopher protocol. | |
| 9 | |
| 10 The module defines the following functions: | |
| 11 | |
| 12 \begin{funcdesc}{send_selector}{selector\, host\optional{\, port}} | |
| 13 Send a \var{selector} string to the gopher server at \var{host} and | |
| 14 \var{port} (default 70). Return an open file object from which the | |
| 15 returned document can be read. | |
| 16 \end{funcdesc} | |
| 17 | |
| 18 \begin{funcdesc}{send_query}{selector\, query\, host\optional{\, port}} | |
| 19 Send a \var{selector} string and a \var{query} string to a gopher | |
| 20 server at \var{host} and \var{port} (default 70). Return an open file | |
| 21 object from which the returned document can be read. | |
| 22 \end{funcdesc} | |
| 23 | |
| 24 Note that the data returned by the Gopher server can be of any type, | |
| 25 depending on the first character of the selector string. If the data | |
| 26 is text (first character of the selector is \samp{0}), lines are | |
| 27 terminated by CRLF, and the data is terminated by a line consisting of | |
| 28 a single \samp{.}, and a leading \samp{.} should be stripped from | |
| 29 lines that begin with \samp{..}. Directory listings (first charactger | |
| 30 of the selector is \samp{1}) are transferred using the same protocol. |
