In article <[EMAIL PROTECTED]>, Alex <[EMAIL PROTECTED]> wrote:
> Hi all. > > Is there a bug in the urlunparse/urlunsplit functions? > Look at this fragment (I know is quite silly): > > urlunparse(urlparse('www.example.org','http')) > ---> 'http:///www.example.org' > ^^^^^ > > There are too many slashes, isn't it? Is it a known bug or maybe I > missed something... Hi Alex, For a few years now I've been using Fourthought's libraries for parsing URLs and they've performed beautifully. In the code comments, they state that urlparse() and friends exhibit some non-RFCish behavior, hence the inspiration for writing their own libraries. If I remember correctly, the file you want is uri.py and it is in 4Suite which you can download from here: http://www.fourthought.com/ HTH -- Philip http://NikitaTheSpider.com/ Whole-site HTML validation, link checking and more -- http://mail.python.org/mailman/listinfo/python-list