os.path.normpath bug?
Michael Hoffman
cam.ac.uk at mh391.invalid
Thu Jun 14 16:35:53 EDT 2007
More information about the Python-list mailing list
Thu Jun 14 16:35:53 EDT 2007
- Previous message (by thread): os.path.normpath bug?
- Next message (by thread): Questions about mathematical and statistical functionality in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
billiejoex wrote:
> Hi there,
> I've noticed that os.path.normpath does not collapse redundant
> separators if they're located at the beginning of the string:
>
>>>> print os.path.normpath('/a//b//c')
> \a\b\c
>>>> print os.path.normpath('//a//b//c')
> \\a\b\c
>
> Is it intentional or is it a bug?
Intentional.
http://en.wikipedia.org/wiki/Path_(computing)#Universal_Naming_Convention
--
Michael Hoffman
- Previous message (by thread): os.path.normpath bug?
- Next message (by thread): Questions about mathematical and statistical functionality in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list