"Feature" in ntpath.py in Python 2.0?

Ben Allfree cm at bldigital.com
Sun May 6 23:07:27 EDT 2001


Good idea. Thanks! You know how it goes: you get thinking in terms of one solution,
and sometimes can't break out :)

Fredrik Lundh wrote:

> Ben Allfree wrote:
> > Thanks, Tim. I running NT, but when I use the os module to concatenate URLs,
> > os uses a \ instead of a /. That's why I temporarily changed os.sep to /, but
> > it doesn't work any more :)
>
> use urlparse.urljoin() instead.
>
> (URL's aren't filenames.  if they were, using posixpath
> would be much better than using ntpath+kludge)
>
> Cheers /F




More information about the Python-list mailing list