[issue23150] urllib parse incorrect handing of params

Martin Panter report at bugs.python.org
Sat Nov 28 18:06:46 EST 2015


Martin Panter added the comment:

Marking as Python 3 since you mentioned urllib.parse, rather than just urllib. However you need to be more specific. We already have a urllib.parse.urlsplit() function which seems to do what you want:

>>> urllib.parse.urlsplit("http://example.com/;").path
'/;'

I see that the “params” bit can be dropped by urljoin(). My proposal in Issue 22852 could probably be adapted to help with that.

----------
nosy: +martin.panter
stage:  -> test needed
versions: +Python 3.4, Python 3.5, Python 3.6

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


More information about the Python-bugs-list mailing list