Urllib.encode() - How does it Treat a List?
Gregory Piñero
gregpinero at gmail.com
Thu Jul 27 19:11:44 EDT 2006
Ok, nevermind, I figured it it, see below
On 7/27/06, Gregory Piñero <gregpinero at gmail.com> wrote:
> Hi Wise Python Folk,
>
> Here's my code:
> >>> p={'type':'bar','title':'Gregs Chart 1','values':[1,2,3],'labels':[1,2,3]}
> >>> urllib.urlencode(p)
I simply should have said:
urllib.urlencode(query=p,doseq=1)
Which makes it handle lists/sequences.
More information about the Python-list
mailing list