"Feature" in ntpath.py in Python 2.0?

Siggy Brentrup bsb at winnegan.de
Sun May 6 10:56:40 EDT 2001


Ben Allfree <cm at bldigital.com> writes:

> 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 :)

For manipulating URL use the urlparse module, for concatenating

  urlparse.urljoin(base, url)

Does The Right Thing [TM]

Regards
  Siggy

-- 
Siggy Brentrup - bsb at winnegan.de - http://www.winnegan.de/
****** ceterum censeo javascriptum esse restrictam *******





More information about the Python-list mailing list