mirror of https://github.com/python/cpython
Move references to RFCs to a "See also" section for consistency with
other sections of the library reference.
This commit is contained in:
parent
9fa4d61bcc
commit
45ca3331d9
|
@ -18,8 +18,7 @@ URL'' to an absolute URL given a ``base URL.''
|
||||||
|
|
||||||
The module has been designed to match the Internet RFC on Relative
|
The module has been designed to match the Internet RFC on Relative
|
||||||
Uniform Resource Locators (and discovered a bug in an earlier
|
Uniform Resource Locators (and discovered a bug in an earlier
|
||||||
draft!). Refer to \rfc{1808} for details on relative
|
draft!).
|
||||||
URLs and \rfc{1738} for information on basic URL syntax.
|
|
||||||
|
|
||||||
It defines the following functions:
|
It defines the following functions:
|
||||||
|
|
||||||
|
@ -40,13 +39,13 @@ Example:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
|
urlparse('http://www.cwi.nl:80/%7Eguido/Python.html')
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
%
|
|
||||||
yields the tuple
|
yields the tuple
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
('http', 'www.cwi.nl:80', '/%7Eguido/Python.html', '', '', '')
|
('http', 'www.cwi.nl:80', '/%7Eguido/Python.html', '', '', '')
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
%
|
|
||||||
If the \var{default_scheme} argument is specified, it gives the
|
If the \var{default_scheme} argument is specified, it gives the
|
||||||
default addressing scheme, to be used only if the URL string does not
|
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.
|
specify one. The default value for this argument is the empty string.
|
||||||
|
@ -75,7 +74,7 @@ Example:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
|
urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
%
|
|
||||||
yields the string
|
yields the string
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
@ -85,3 +84,15 @@ yields the string
|
||||||
The \var{allow_fragments} argument has the same meaning as for
|
The \var{allow_fragments} argument has the same meaning as for
|
||||||
\code{urlparse()}.
|
\code{urlparse()}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{seealso}
|
||||||
|
\seerfc{1738}{Uniform Resource Locators (URL)}{
|
||||||
|
This specifies the formal syntax and semantics of absolute
|
||||||
|
URLs.}
|
||||||
|
\seerfc{1808}{Relative Uniform Resource Locators}{
|
||||||
|
This Request For Comments includes the rules for joining an
|
||||||
|
absolute and a relative URL, including a fair normal of
|
||||||
|
``Abnormal Examples'' which govern the treatment of border
|
||||||
|
cases.}
|
||||||
|
\end{seealso}
|
||||||
|
|
Loading…
Reference in New Issue