urlparse second example wrong output?
May 4, 2013
10:23 p.m.
In the second example for urlparse: http://docs.python.org/3.4/library/urllib.parse.html?highlight=urlparse
urlparse('www.cwi.nl/%7Eguido/Python.html') ParseResult(scheme='', netloc='', path='www.cwi.nl:80/%7Eguido/Python.html', params='', query='', fragment='')
I think the "path=" component is wrong. ":80" shouldn't be there. Here is what happens in 2.7: In [2]: urlparse('www.cwi.nl/%7Eguido/Python.html') Out[2]: ParseResult(scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html', params='', query='', fragment='')
4728
Age (days ago)
4728
Last active (days ago)
0 comments
1 participants
participants (1)
-
Catalin Patulea