summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-04-24 16:22:47 (GMT)
committerFred Drake <fdrake@acm.org>2003-04-24 16:22:47 (GMT)
commitd859d470a110f946485a8ad792ee2a04dbc1418a (patch)
treef453a6558d32f5dde92a4d1bb30f8bc6fbc183c6 /Doc
parent54aa5781d50adf2ab2168399c2f6d16ccff0a5aa (diff)
downloadcpython-d859d470a110f946485a8ad792ee2a04dbc1418a.zip
cpython-d859d470a110f946485a8ad792ee2a04dbc1418a.tar.gz
cpython-d859d470a110f946485a8ad792ee2a04dbc1418a.tar.bz2
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
Closes SF bug #724751.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcgi.tex3
-rw-r--r--Doc/lib/liburllib.tex3
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libcgi.tex b/Doc/lib/libcgi.tex
index 83e5e77..38798d4 100644
--- a/Doc/lib/libcgi.tex
+++ b/Doc/lib/libcgi.tex
@@ -351,6 +351,9 @@ The optional argument \var{strict_parsing} is a flag indicating what
to do with parsing errors. If false (the default), errors
are silently ignored. If true, errors raise a ValueError
exception.
+
+Use the \function{\refmodule{cgi}.urlencode()} function to convert
+such lists of pairs into query strings.
\end{funcdesc}
\begin{funcdesc}{parse_multipart}{fp, pdict}
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex
index a36df6b..89e4cb3 100644
--- a/Doc/lib/liburllib.tex
+++ b/Doc/lib/liburllib.tex
@@ -211,6 +211,9 @@ When a sequence of two-element tuples is used as the \var{query} argument,
the first element of each tuple is a key and the second is a value. The
order of parameters in the encoded string will match the order of parameter
tuples in the sequence.
+The \refmodule{cgi} module provides the functions
+\function{parse_qs()} and \function{parse_qsl()} which are used to
+parse query strings into Python data structures.
\end{funcdesc}
\begin{funcdesc}{pathname2url}{path}