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
5545219b
Commit
5545219b
authored
Nov 16, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the urlsplit() and urlunsplit() functions.
parent
5751a22e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
Doc/lib/liburlparse.tex
Doc/lib/liburlparse.tex
+19
-0
No files found.
Doc/lib/liburlparse.tex
View file @
5545219b
...
...
@@ -63,6 +63,25 @@ URL that was parsed originally had redundant delimiters, e.g. a ? with
an empty query (the draft states that these are equivalent).
\end{funcdesc}
\begin{funcdesc}
{
urlsplit
}{
urlstring
\optional
{
,
default
_
scheme
\optional
{
, allow
_
fragments
}}}
This is similar to
\function
{
urlparse()
}
, but does not split the
params from the URL. This should generally be used instead of
\function
{
urlparse()
}
if the more recent URL syntax allowing
parameters to be applied to each segment of the
\var
{
path
}
portion of
the URL (see
\rfc
{
2396
}
). A separate function is needed to separate
the path segments and parameters. This function returns a 5-tuple:
(addressing scheme, network location, path, query, fragment
identifier).
\versionadded
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
urlunsplit
}{
tuple
}
Combine the elements of a tuple as returned by
\function
{
urlsplit()
}
into a complete URL as a string.
\versionadded
{
2.2
}
\end{funcdesc}
\begin{funcdesc}
{
urljoin
}{
base, url
\optional
{
, allow
_
fragments
}}
Construct a full (``absolute'') URL by combining a ``base URL''
(
\var
{
base
}
) with a ``relative URL'' (
\var
{
url
}
). Informally, this
...
...
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