Issue1591035
Created on 2006-11-05 22:27 by dalke, last changed 2009-05-01 11:05 by orsenthil.
|
msg61030 - (view) |
Author: Andrew Dalke (dalke) |
Date: 2006-11-05 22:27 |
|
urlparse implements RFC 1808. That is strongly out of
date. The most recent is RFC 3986.
Here is a text from 4Suite
# Reasons to avoid using urllib.basejoin() and
urlparse.urljoin():
# - Both are partial implementations of
long-obsolete specs.
# - Both accept relative URLs as the base, which no
spec allows.
# - urllib.basejoin() mishandles the '' and '..'
references.
# - If the base URL uses a non-hierarchical or
relative path,
# or if the URL scheme is unrecognized, the
result is not
# always as expected (partly due to issues in
RFC 1808).
# - If the authority component of a 'file' URI is
empty,
# the authority component is removed altogether.
If it was
# not present, an empty authority component is
in the result.
# - '.' and '..' segments are not always collapsed
as well as they
# should be (partly due to issues in RFC 1808).
# - Effective Python 2.4, urllib.basejoin() *is*
urlparse.urljoin(),
# but urlparse.urljoin() is still based on RFC 1808.
See also the back python-dev discussions on "urlparse"
for examples of people wanting a better/more up-to-date
urlparse/urljoin.
|
|
msg61031 - (view) |
Author: Andrew Dalke (dalke) |
Date: 2006-11-06 09:47 |
|
Logged In: YES
user_id=190903
See also bug 1462525 which has a 'uriparse.py' replacement
for urlparse, claiming better compliance.
|
|
| Date |
User |
Action |
Args |
| 2009-05-01 11:05:49 | orsenthil | set | nosy:
+ orsenthil
|
| 2009-04-22 17:25:45 | ajaksu2 | set | keywords:
+ easy versions:
+ Python 3.1 |
| 2009-02-13 01:36:07 | ajaksu2 | set | nosy:
+ jjlee dependencies:
+ URI parsing library stage: test needed versions:
+ Python 2.7 |
| 2008-05-06 20:26:32 | georg.brandl | set | assignee: jhylton nosy:
+ jhylton |
| 2008-05-06 20:08:06 | georg.brandl | link | issue1779700 superseder |
| 2006-11-05 22:27:28 | dalke | create | |
|