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
Title: urlparse return exchanged values
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, oscarah
Priority: normal Keywords:

Created on 2006-08-30 21:19 by oscarah, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg29716 - (view) Author: Oscar Acena (oscarah) Date: 2006-08-30 21:19
The urlparser module is used to split an url into 6
fields, acording to the pertinent spec.

The fields are:
 - scheme
 - net location
 - path
 - params
 - query
 - frag id

The netloc of http://www.google.es/index.html is:
 "www.google.es" and the path is "/index.html", ok?

But if you try this:
  >>> urlparse("www.google.es") 
the answer is:
('', '', 'www.google.es', '', '', '')
instead of 
('', 'www.google.es', '', '', '', '')

On the other hand, if you try this:
 >>> urlparse("http://www.google.es")
the answer is:
('http', 'www.google.es', '', '', '', '')
 which is correct.

The pytho header is: Python 2.4.4c0 (#2, Jul 30 2006,
15:43:58)
[GCC 4.1.2 20060715 (prerelease) (Debian 4.1.1-9)] on
linux2

and I downloaded the latest version of that lib
(urlparse.py, at 2006 08 30)

Thats all. Thanks.
msg29717 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-08-31 05:43
Logged In: YES 
user_id=849994

Duplicate of #754016.
msg29718 - (view) Author: Oscar Acena (oscarah) Date: 2006-08-31 09:52
Logged In: YES 
user_id=1587388

Sorry then! I look for it but i haven't found anything. 
Thanks for your time.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43916
2006-08-30 21:19:32oscarahcreate