[Web-SIG] urlparse method behaviour when handing abs/rel urls

Ian Bicking ianb at colorstudy.com
Fri Jun 27 20:35:54 CEST 2008


O.R.Senthil Kumaran wrote:
> At http://bugs.python.org/issue754016, there is a discussion wherein if a URL
> is given in a normal way to urlparse (For e.g. urlparse('www.python.org')), it
> parses it as a path rather than as the net_loc component as is the comman case
> with browsers.

Browsers interpret it as a path, e.g., <a 
href="www.python.org">python.org</a> will not take you to www.python.org

There are things like email clients that detect domain names and turn 
them into links, but detecting links in text is quite different from 
anything urlparse does.

-- 
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org


More information about the Web-SIG mailing list