By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

urlencode() doseq and Python 3.0

P: n/a
Hi,

I think the default of urlencode doseq being false is just
there to preserve the old behavior.
http://svn.python.org/view/python/br...te&view=markup

{{{
...
if not doseq:
# preserve old behavior
}}}

I guess no one want really wants this:
>>urllib.urlencode({'key': ['value1', 'value2']})
'key=%5B%27value1%27%2C+%27value2%27%5D'

I think this is what most people want:
>>urllib.urlencode({'key': ['value1', 'value2']}, doseq=True)
'key=value1&key=value2'
Should I open a bug against 3.0?

Thomas

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Oct 30 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.