This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Alex.Vaystikh, docs@python, orsenthil, r.david.murray
Date 2014-10-12.14:56:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413125813.26.0.000382242482925.issue22618@psf.upfronthosting.co.za>
In-reply-to
Content
Isn't it obvious that you have to parse before you unquote?  That's the purpose of quoting, after all.  I suppose that is one of those "beginner mind" things that is obvious only because I'm an experienced programmer...and that there are web servers that do it wrong. 

The docs could definitely use some improvement, since they don't mention that parse_qs automatically unquotes the values...it is implicit in the fact that urlencode with doseq=true is the inverse, and it encodes them, but it should be made explicit.

You also might want to take note of the 'keep_blank_values' attribute, which could also use a doc improvement (it isn't obvious from the text what 'blank values' are):

>>> parse_qs('a=1&b=2&b=1&a%3Donly_appears_after_unquote', keep_blank_values=True)
{'a': ['1'], 'b': ['2', '1'], 'a=only_appears_after_unquote': ['']}
History
Date User Action Args
2014-10-12 14:56:53r.david.murraysetrecipients: + r.david.murray, orsenthil, docs@python, Alex.Vaystikh
2014-10-12 14:56:53r.david.murraysetmessageid: <1413125813.26.0.000382242482925.issue22618@psf.upfronthosting.co.za>
2014-10-12 14:56:53r.david.murraylinkissue22618 messages
2014-10-12 14:56:53r.david.murraycreate