[Python-checkins] CVS: python/dist/src/Doc/lib liburllib.tex,1.32,1.33
Skip Montanaro
montanaro@users.sourceforge.net
Sun, 28 Jan 2001 13:18:18 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv23181
Modified Files:
liburllib.tex
Log Message:
updated to document use of sequences of two-element tuples as inputs
Index: liburllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib.tex,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** liburllib.tex 2001/01/24 06:36:06 1.32
--- liburllib.tex 2001/01/28 21:18:16 1.33
***************
*** 144,149 ****
\end{funcdesc}
! \begin{funcdesc}{urlencode}{dict\optional{, doseq}}
! Convert a dictionary to a ``url-encoded'' string, suitable to pass to
\function{urlopen()} above as the optional \var{data} argument. This
is useful to pass a dictionary of form fields to a \code{POST}
--- 144,150 ----
\end{funcdesc}
! \begin{funcdesc}{urlencode}{query\optional{, doseq}}
! Convert a mapping object or a sequence of two-element tuples to a
! ``url-encoded'' string, suitable to pass to
\function{urlopen()} above as the optional \var{data} argument. This
is useful to pass a dictionary of form fields to a \code{POST}
***************
*** 154,157 ****
--- 155,162 ----
present and evaluates to true, individual \code{\var{key}=\var{value}} pairs
are generated for each element of the sequence.
+ 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.
\end{funcdesc}