New submission from Quentin Peter <[email protected]>:
Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.18.1 -- An enhanced Interactive Python.
In [1]: import os.path
In [2]: os.path.splitdrive(r"\\machine\mountpoint\directory")
Out[2]: ('\\\\machine\\mountpoint', '\\directory')
In [3]: os.path.splitdrive(r"\\?\UNC\machine\mountpoint\directory")
Out[3]: ('\\\\?\\UNC', '\\machine\\mountpoint\\directory')
In [4]:
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42170>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com