[issue1462525] URI parsing library
Senthil
report at bugs.python.org
Mon Aug 25 15:14:36 CEST 2008
Senthil <orsenthil at gmail.com> added the comment:
Hello Paul,
Have you beeing keeping track of urlparse changes in Python2.6? I
anaylzed your patch and read through the RFC3986 and have the
following comments:
1) The usage of this module is very diffirent from the current
urlparse module's usage. It might be that this module was designed to
co-exist with urlparse, providing certain additional functionalities.
But inorder to replace urlparse, I find this module is "Backward
Incompatible with the code base".
Some comments extra features provided /claims of this module.
2) The module provides URI handling framework that includes default
URI Parsers for common URI Schemes.
- RFC3986 specifies that scheme handling part is left to the
separate RFC describing the schemes.
- uriparse library attempts that by providing default port and
default hostname for certain schemes, but that can be made available
as a patch to urlparse rather than new library. The need for such a
change in urlparse needs to be analyzed, as there has not been any
requirement raised as such for proving default port, default host for
schemes whenever it is applicable.
3) urlsplit, urlunsplit, spliting the authority into sub-components is
available in the current urlparse library itself and is RFC3986
conformant.
4) urljoin in the current urlparse ( patched with fixes) is currently
RFC3986conformant.
What urlparse further requires and this patch also lacks is ( as
commented by John J Lee)
1) Handling of IRIs.
2) Python Unicode Strings.
3) Percent- Encodings for IRIs and Python Unicode Strings.
( There is a discussion going on on quote and unquote of unicode, and
thatwould be basically be extended to above points as well)
- If required, we can adopt the default host and port provision
mechanisms as mentioned in this patch to the current urlparse.
Other that that, I see that urlparse currently has all changes as
mentioned inthis patch and makes the attached patch an obsolete one.
Please let me know your comments/ thoughts.
Thanks.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1462525>
_______________________________________
More information about the Python-bugs-list
mailing list