Mercurial > cpython-lru_cache-weakref
diff Doc/liburlparse.tex @ 5818:3468ea8645ca legacy-trunk
AMK's megapatch:
* \bcode, \ecode added everywhere
* \label{module-foo} added everywhere
* A few \seealso sections added.
* Indentation fixed inside verbatim in lib*tex files
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:34:52 +0000 |
| parents | 9b7e6d9a528d |
| children | 10f2921a091e |
line wrap: on
line diff
--- a/Doc/liburlparse.tex Thu Jul 17 16:29:42 1997 +0000 +++ b/Doc/liburlparse.tex Thu Jul 17 16:34:52 1997 +0000 @@ -1,4 +1,5 @@ \section{Standard Module \sectcode{urlparse}} +\label{module-urlparse} \stmodindex{urlparse} \index{WWW} \index{World-Wide Web} @@ -34,16 +35,16 @@ Example: -\begin{verbatim} +\bcode\begin{verbatim} urlparse('http://www.cwi.nl:80/%7Eguido/Python.html') -\end{verbatim} - +\end{verbatim}\ecode +% yields the tuple -\begin{verbatim} +\bcode\begin{verbatim} ('http', 'www.cwi.nl:80', '/%7Eguido/Python.html', '', '', '') -\end{verbatim} - +\end{verbatim}\ecode +% If the \var{default_scheme} argument is specified, it gives the default addressing scheme, to be used only if the URL string does not specify one. The default value for this argument is the empty string. @@ -69,16 +70,16 @@ Example: -\begin{verbatim} +\bcode\begin{verbatim} urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html') -\end{verbatim} - +\end{verbatim}\ecode +% yields the string -\begin{verbatim} +\bcode\begin{verbatim} 'http://www.cwi.nl/%7Eguido/FAQ.html' -\end{verbatim} - +\end{verbatim}\ecode +% The \var{allow_fragments} argument has the same meaning as for \code{urlparse}. \end{funcdesc}
