Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45ca3331
Commit
45ca3331
authored
Aug 24, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move references to RFCs to a "See also" section for consistency with
other sections of the library reference.
parent
9fa4d61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
Doc/lib/liburlparse.tex
Doc/lib/liburlparse.tex
+16
-5
No files found.
Doc/lib/liburlparse.tex
View file @
45ca3331
...
...
@@ -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
Uniform Resource Locators (and discovered a bug in an earlier
draft!). Refer to
\rfc
{
1808
}
for details on relative
URLs and
\rfc
{
1738
}
for information on basic URL syntax.
draft!).
It defines the following functions:
...
...
@@ -40,13 +39,13 @@ Example:
\begin{verbatim}
urlparse('http://www.cwi.nl:80/
%7Eguido/Python.html')
\end{verbatim}
%
yields the tuple
\begin{verbatim}
('http', 'www.cwi.nl:80', '/
%7Eguido/Python.html', '', '', '')
\end{verbatim}
%
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.
...
...
@@ -75,7 +74,7 @@ Example:
\begin{verbatim}
urljoin('http://www.cwi.nl/
%7Eguido/Python.html', 'FAQ.html')
\end{verbatim}
%
yields the string
\begin{verbatim}
...
...
@@ -85,3 +84,15 @@ yields the string
The
\var
{
allow
_
fragments
}
argument has the same meaning as for
\code
{
urlparse()
}
.
\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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment