]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
authorFred Drake <fdrake@acm.org>
Thu, 24 Apr 2003 16:25:07 +0000 (16:25 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 24 Apr 2003 16:25:07 +0000 (16:25 +0000)
Closes SF bug #724751.

Doc/lib/libcgi.tex
Doc/lib/liburllib.tex

index 83e5e77659bae4e5660a34dc31832c23010c422b..38798d479f72466bb5a2be2aabf48465de105eca 100644 (file)
@@ -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}
index 49281736c52d0e419835e159dbf0ad226069e583..0601da9d8440e28fd9b45395ea291c5aa8f4ae81 100644 (file)
@@ -183,6 +183,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}