https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
>>> urlparse("scheme://netloc/path;parameters?query#fragment")
ParseResult(scheme='scheme', netloc='netloc', path='/path;parameters', params='',
query='query', fragment='fragment')
I think the problem is here (for v3.13):
|
if (scheme or '') in uses_params and ';' in url: |
I assume scheme isn't a scheme that uses_params, so the params don't get parsed out. On the other hand, https works as expected:
>>> urlparse("https://netloc/path;parameters?query#fragment")
ParseResult(scheme='https', netloc='netloc', path='/path', params='parameters',
query='query', fragment='fragment')
By the way, the documentation doesn't mention anything about uses_params. Is that an oversight? Should some mention be added?
Linked PRs
https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlparse
I think the problem is here (for v3.13):
cpython/Lib/urllib/parse.py
Line 401 in 78377c7
I assume
schemeisn't a scheme thatuses_params, so the params don't get parsed out. On the other hand,httpsworks as expected:By the way, the documentation doesn't mention anything about
uses_params. Is that an oversight? Should some mention be added?Linked PRs