Converting relative URLs to absolute

brueckd at tbye.com brueckd at tbye.com
Fri Mar 15 16:08:03 EST 2002


On 15 Mar 2002, Paul Boddie wrote:

> > This precisely what I'm looking for.  As someone else pointed out in
> > another post, urllib should have this but, sadly, does not.
>
> The module I mentioned [1] doesn't attempt to handle more
> sophisticated URL types, such as...
>
>   http://user@somesite/somepath
>
> Indeed, a more generic URL parser really needs to be put into the
> standard library whilst retaining the simplicity that one tends to see
> in other "path" manipulation APIs (eg. os.path) - the world doesn't
> need another overcomplicated Java-like API to do the simplest of
> things. I wonder if mxURL might at least provide inspiration.

Rather than add a new module, why not add more functionality to the
urlparse module in the standard distribution? (what functionality do you
need beyond what's already there, anyway?)

-Dave





More information about the Python-list mailing list