[Python-ideas] PEP 428 - object-oriented filesystem paths

Antoine Pitrou solipsis at pitrou.net
Sat Oct 6 01:16:09 CEST 2012


On Sat, 06 Oct 2012 00:47:28 +0200
Mathias Panzenböck <grosser.meister.morti at gmx.net>
wrote:
> 
> \\ at the start of a path has a special meaning under windows:
> http://en.wikipedia.org/wiki/UNC_path#Uniform_Naming_Convention

And indeed the API preserves them:

    >>> PurePosixPath('//some/path')
    PurePosixPath('/some/path')
    >>> PureNTPath('//some/path')
    PureNTPath('\\\\some\\path\\')

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net





More information about the Python-ideas mailing list