diff options
| author | Fred Drake <fdrake@acm.org> | 2003-04-24 16:25:07 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2003-04-24 16:25:07 +0000 |
| commit | 2a1ad9cf42993491a2f9e8030aa58de05952c924 (patch) | |
| tree | 48a5b1b4d4f7d63c59706affc0b58d58412a3134 /Doc | |
| parent | 052d58782bad3c5d534233193d1a077af5941d6a (diff) | |
| download | cpython-git-2a1ad9cf42993491a2f9e8030aa58de05952c924.tar.gz | |
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.tex | 3 | ||||
| -rw-r--r-- | Doc/lib/liburllib.tex | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libcgi.tex b/Doc/lib/libcgi.tex index 83e5e77659..38798d479f 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 49281736c5..0601da9d84 100644 --- a/Doc/lib/liburllib.tex +++ b/Doc/lib/liburllib.tex @@ -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} |
