Mercurial > cpython-lru_cache-weakref
diff Doc/libsocket.tex @ 2064:280f31e6c653 legacy-trunk
copyright.tex: Add 1995 to copyright message.
lib.tex: add libimp; remove bogus warning about lineii.
libmath.tex: document hypot().
libmd5.tex: rename md5.md5() to md5.new().
libposix.tex: document chown().
libposixfile.tex: openfile() instead of fileopen().
libsocket.tex: document gethostbyaddr().
libtypes.tex: add footnote explaining why readline() keeps the newline.
ref3.tex: correct typos, add back*quotes to index.
ref4.tex: don't use \verb inside footnote.
ref5.tex: explain repr() and str() and add them + back*quotes to index.
ref6.tex: correct typo, don't use \verb in footnote.
ref7.tex: don't use \verb in footnote.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 04 Jan 1995 19:17:34 +0000 |
| parents | 10a12473ee93 |
| children | fbaf54169711 |
line wrap: on
line diff
--- a/Doc/libsocket.tex Wed Jan 04 19:12:49 1995 +0000 +++ b/Doc/libsocket.tex Wed Jan 04 19:17:34 1995 +0000 @@ -79,7 +79,16 @@ Return a string containing the hostname of the machine where the Python interpreter is currently executing. If you want to know the current machine's IP address, use -\code{socket.gethostbyname( socket.gethostname() )} instead. +\code{socket.gethostbyname(socket.gethostname())} instead. +\end{funcdesc} + +\begin{funcdesc}{gethostbyaddr}{ip_address} +Return a triple \code{(hostname, aliaslist, ipaddrlist)} where +\code{hostname} is the primary host name responding to the given +\var{ip_address}, \code{aliaslist} is a (possibly empty) list of +alternative host names for the same address, and \code{ipaddrlist} is +a list of IP addresses for the same interface on the same +host (most likely containing only a single address). \end{funcdesc} \begin{funcdesc}{getservbyname}{servicename\, protocolname}
