[Tutor] How to replace the '\'s in a path with '/'s?

Sergey sergey at mighty.co.za
Sun Jul 31 17:35:26 CEST 2011


Maybe something useful could be find in urllib? It can open local files. And
UNIX slashes are equal to Web slashes.
http://docs.python.org/release/3.2.1/library/urllib.request.html#urllib.request.URLopener
--
class urllib.request.URLopener(proxies=None, **x509)

    Base class for opening and reading URLs. Unless you need to support opening
objects using schemes other than http:, ftp:, or file:, you probably want to use
FancyURLopener.
--

>On Sat, 30 Jul 2011 22:28:11 -0700 "Richard D. Moores" <rdmoores at gmail.com>
wrote

>I would like to write a function that would take a path 

____________________________________________________________
South Africas premier free email service - www.webmail.co.za 

For super low premiums, click here http://www.dialdirect.co.za/?vdn=15828




More information about the Tutor mailing list