Message229156
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': ['']} |
|
Date |
User |
Action |
Args |
2014-10-12 14:56:53 | r.david.murray | set | recipients:
+ r.david.murray, orsenthil, docs@python, Alex.Vaystikh |
2014-10-12 14:56:53 | r.david.murray | set | messageid: <1413125813.26.0.000382242482925.issue22618@psf.upfronthosting.co.za> |
2014-10-12 14:56:53 | r.david.murray | link | issue22618 messages |
2014-10-12 14:56:53 | r.david.murray | create | |
|