[issue1500504] Alternate RFC 3986 compliant URI parsing module

A.M. Kuchling report at bugs.python.org
Wed Nov 13 01:22:31 CET 2013


A.M. Kuchling added the comment:

Here's a slightly modified version of urischeme.py that can be run under Python 3 and compares its results with urllib.parse, printing out the mismatches.

The major differences seem to be 1) urischeme fills in the default port if it's not explicitly provided, e.g. http urls have the port set to 80, 2) the path is returned as '/', not the empty string, for the URL http://host, 3) urllib.parse.urljoin() doesn't get rid of ./ and ../ in URLs.

3) seems like something worth fixing in urllib.parse.  The others probably present some backward-compatibility issues.

----------
nosy: +akuchling
Added file: http://bugs.python.org/file32591/urischemes.py

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


More information about the Python-bugs-list mailing list