[ python-Bugs-1549589 ] urlparse return exchanged values

SourceForge.net noreply at sourceforge.net
Wed Aug 30 23:19:33 CEST 2006


Bugs item #1549589, was opened at 2006-08-30 21:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1549589&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Oscar Acena (oscarah)
Assigned to: Nobody/Anonymous (nobody)
Summary: urlparse return exchanged values

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1549589&group_id=5470


More information about the Python-bugs-list mailing list