[issue20116] urlparse.parse_qs should take argument for query separator
Ruben D. Orduz added the comment: Hi all, OP here. My intent was to optionally pass a separator parameter, _not_ enable/disable toggle. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20116> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20116] urlparse.parse_qs should take argument for query separator
New submission from Ruben D. Orduz: Currently urlparse.parse_qs (http://hg.python.org/cpython/file/2.7/Lib/urlparse.py#l150) assumes and uses ';' as a query string separator with no way to overwrite that. There are several web service APIs out there that use ';' as list separator (e.g. [URL]?fruits=lemon;limefamily=citrus). Although ';' seems like a sensible choice for a default, there should be a way to overwrite it. -- messages: 207237 nosy: ruben.orduz priority: normal severity: normal status: open title: urlparse.parse_qs should take argument for query separator type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20116] urlparse.parse_qs should take argument for query separator
Ruben D. Orduz added the comment: So, are you suggesting I should change to a different type if desired for 2.7.x or leave for release to 3.5 and then submit a patch to backport it to 2.7.x? I apologize, not sure how the workflow works in these cases. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20116] urlparse.parse_qs should take argument for query separator
Ruben D. Orduz added the comment: Ah, gotcha. I think I will leave as is then. Thanks for clarifying. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20116] urlparse.parse_qs should take argument for query separator
Ruben D. Orduz added the comment: Senthil, The RFC can be found here: http://tools.ietf.org/html/rfc3986#section-2.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com