Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().

Closes SF bug #724751.
This commit is contained in:
Fred Drake 2003-04-24 16:22:47 +00:00
parent 54aa5781d5
commit d859d470a1
2 changed files with 6 additions and 0 deletions

View 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 to do with parsing errors. If false (the default), errors
are silently ignored. If true, errors raise a ValueError are silently ignored. If true, errors raise a ValueError
exception. exception.
Use the \function{\refmodule{cgi}.urlencode()} function to convert
such lists of pairs into query strings.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{parse_multipart}{fp, pdict} \begin{funcdesc}{parse_multipart}{fp, pdict}

View file

@ -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 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 order of parameters in the encoded string will match the order of parameter
tuples in the sequence. 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} \end{funcdesc}
\begin{funcdesc}{pathname2url}{path} \begin{funcdesc}{pathname2url}{path}