Converting relative URLs to absolute

Paul Boddie paul at boddie.net
Wed Mar 13 11:29:02 EST 2002


Dave Cole <djc at object-craft.com.au> wrote in message news:<m38z8wispl.fsf at ferret.object-craft.com.au>...
> >>>>> "Max" == Max M <maxm at mxm.dk> writes:
> 
> Max> So perhaps you could get it added to the urllib instead?
> 
> That would be the best result - we could all use it then.

What embarrassment! I have some code which only covers some of the
cases, and then only in a form relevant to the application in
question. However, it's possible to sketch out what might be needed,
so I've uploaded a module which implements a "first draft" of a split
function. The join function is an exercise for the interested
reader...

  http://www.boddie.org.uk/downloads/urlutils.py

Paul



More information about the Python-list mailing list