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.

Author orsenthil
Recipients liori, orsenthil
Date 2011-04-18.13:16:30
SpamBayes Score 2.8564566e-05
Marked as misclassified No
Message-id <1303132591.03.0.610645551648.issue11862@psf.upfronthosting.co.za>
In-reply-to
Content
Tomasz,

I think, you misunderstood the purpose of urlparse library. urlparse is for parsing the URL and into its components. The url could be a mailto:, svn+ssh or http,https. The requirement for parsing comes when you are designing systems which take up URL and you need to do parse it for certain purposes for your application and then do action based on the parsed result.  That is why there are parse,unparse,split, unsplit functions provided.

If you have to get the original url back it is reverse call, send the parsed result to urlunparse.

The urllib, which provides facilties for doing http at higher level provides you geturl (which is getting the url from the header values).

I don't see the use of __str__ or __unicode__ for parse library. I am closing this report as Invalid.

Thank you.
History
Date User Action Args
2011-04-18 13:16:31orsenthilsetrecipients: + orsenthil, liori
2011-04-18 13:16:31orsenthilsetmessageid: <1303132591.03.0.610645551648.issue11862@psf.upfronthosting.co.za>
2011-04-18 13:16:30orsenthillinkissue11862 messages
2011-04-18 13:16:30orsenthilcreate