➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: urlparse - relative url parsing and joins to be RFC3986 compliance
类型: enhancement Stage:
Components: Library (Lib) Versions: Python 3.4, Python 3.5
process
状态: open Resolution:
Dependencies: 后续:
分配给: orsenthil 抄送列表: gregory.p.smith, jjlee, martin.panter, orsenthil
优先级: normal 关键字: patch

orsenthil 于 2008-08-22 12:54 创建。最近一次由 admin 于 2022-04-11 14:56 修改。

文件
文件名 上传时间 Description 编辑
urlparse_rfc3986-py26.diff orsenthil, 2008-08-22 12:54 review
urlparse_rfc3986-py3k.diff orsenthil, 2008-08-22 12:55 review
Messages (6)
msg71743 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) 日期: 2008-08-22 12:54
Attaching two patches to make the current urlparse library, especially 
the relative url parsing and urljoin  to be RFC3986 compliance.
I have included all the tests prescribed in RFC3986 and verified them 
to pass with the patches.

Our parsing functionality of netloc (to 
username,password,hostname,port) is same as what RFC3986 specifies. It 
uses the term 'authority' instead of 'netloc'. I did not feel the need 
for name change. If required, it can done.
msg72067 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) 日期: 2008-08-28 06:46
given where we are in the release process at the moment I doubt this can
go into 2.6/3.0.  Bring it up on python-dev if you have compelling
reasons why it should.

Otherwise, looks good for trunk 2.7/3.1 immediately after the releases
are branched.
msg74851 - (view) Author: John J Lee (jjlee) 日期: 2008-10-16 19:41
There are a bunch of other candidate implementations of this RFC kicking
around, I think.

Also, I believe there was agreement on python-dev that a new module
should be added rather than changing the behaviour of module urlparse.
msg74852 - (view) Author: John J Lee (jjlee) 日期: 2008-10-16 19:44
Here they are:

http://bugs.python.org/issue1500504
http://bugs.python.org/issue1462525
http://bugs.python.org/issue1591035
msg74856 - (view) Author: John J Lee (jjlee) 日期: 2008-10-16 20:38
Hmm, I see you've already commented on some of those, Senthil.  Perhaps
you could add a comment to this bug explaining how your patch relates to
the others.  Should it replace them? (why?)  Should one of those patches
be applied also?

Also, my comment about there being agreement on python-dev is probably a
misrepresentation.  This is what I remembered, I think:

http://article.gmane.org/gmane.comp.python.devel/73314/

which seems to say that a new API should be added, but not that urlparse
shouldn't be changed to be more compliant with RFC 3986.
msg109962 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) 日期: 2010-07-11 05:16
Several changes were already made to urlparse to make it more rfc3986 compliant. Let me recollect what else these patches offer.
历史
日期 用户 动作 参数
2022-04-11 14:56:38admin修改github: 47897
2015-02-09 00:10:27martin.panter修改抄送: + martin.panter
2014-06-26 19:07:57BreamoreBoy修改versions: + Python 3.4, Python 3.5, - Python 3.2
2010-07-11 05:16:10orsenthil修改assignee: gregory.p.smith -> orsenthil
消息: + msg109962
2010-07-10 06:07:54terry.reedy修改versions: + Python 3.2, - Python 2.6, Python 3.0
2008-10-16 20:38:25jjlee修改消息: + msg74856
2008-10-16 19:44:46jjlee修改消息: + msg74852
2008-10-16 19:41:55jjlee修改抄送: + jjlee
消息: + msg74851
2008-08-28 06:46:59gregory.p.smith修改优先级: normal
assignee: gregory.p.smith
type: enhancement
消息: + msg72067
抄送: + gregory.p.smith
2008-08-22 12:55:00orsenthil修改文件: + urlparse_rfc3986-py3k.diff
2008-08-22 12:54:34orsenthil创建