os.path.normpath doesnt work?

Berthold Hoellmann hoel at GermanLloyd.org
Thu Mar 16 08:06:12 EST 2000


moonseeker at my-deja.com wrote:
> 
> Hi!
> 
> I'm using Python 1.5.2 (WinNT).
> 
> >>> os.path.normpath('////hallo\\')
> '\\\\\\\\hallo'
> >>>
> 
> normpath should give:
> '\\hallo'

Hello,

I'd say, because from the windows viewpoint, "\\server\path" differs
alot from "\server\path" it really makes sense to keep the leading
(back)slashes.


Cheers

Berthold
-- 
email: hoel at GermanLloyd.org
   )
  (
C[_]  These opinions might be mine, but never those of my employer.



More information about the Python-list mailing list