[issue15593] urlparse.parse_qs documentation wrong re: urlencode

New submission from Rob Kinyon: This may appear to be a duplicate of http://bugs.python.org/issue12390 and http://bugs.python.org/issue833405, but it's not. The documentation of urlparse.parse_qs() should state that in order for urllib.urlencode to properly reverse its output, the doseq parameter must be set to True. Please amend the documentation to make this very clear. Ideally, the documentation of urlencode() would also make it clear that doseq=True is required if the output is from parse_qs(). ---------- assignee: docs@python components: Documentation messages: 167707 nosy: Rob.Kinyon, docs@python priority: normal severity: normal status: open title: urlparse.parse_qs documentation wrong re: urlencode versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15593> _______________________________________

Changes by Senthil Kumaran <senthil@uthcode.com>: ---------- nosy: +orsenthil _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15593> _______________________________________

Peter Russell added the comment: Attached is a patch which adds a reference to the doseq parameter to urlencode to the documentation for parse_qs ---------- keywords: +patch nosy: +qwertyface Added file: http://bugs.python.org/file27331/Issue-15593.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15593> _______________________________________

Michael Foord added the comment: UTF-16 patches are relatively unusual... ---------- nosy: +michael.foord _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15593> _______________________________________

Roundup Robot added the comment: New changeset 8590e9b05069 by Michael Foord in branch 'default': urllib.parse.urlencode doc updarte. http://hg.python.org/cpython/rev/8590e9b05069 ---------- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15593> _______________________________________
participants (5)
-
Michael Foord
-
Peter Russell
-
Rob Kinyon
-
Roundup Robot
-
Senthil Kumaran