[issue20116] urlparse.parse_qs should take argument for query separator

Luiz Poleto report at bugs.python.org
Wed Apr 20 10:08:42 EDT 2016


Luiz Poleto added the comment:

Based on the example provided by the OP, it appears that he would expect
the output to be:
{'family': ['citrus'], 'fruits': ['lemon;lime']}

Since the W3C recommendation for the application/x-www-form-urlencoded type
specify using '&' to separate the parameters in the query string (';' is
not mentioned there), I recommended a parameter for disabling the use of
';' as a separator (but '&' will still be the separator to be used).

The only thing I see against using the RFC is that although it specifies
which characters are valid in a query string, it does not define how they
should be used; that is done by W3C's application/x-www-form-urlencoded and
it is very specific about using '&' as a separator.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20116>
_______________________________________


More information about the Python-bugs-list mailing list