N.P. Khelili <nop...@free.fr> added the comment:

in the definition of the name property 
https://github.com/python/cpython/blob/9ab2fb1c68a75115da92d51b8c40b74f60f88561/Lib/pathlib.py#L792
 :

if len(parts) == (1 if (self._drv or self._root) else 0):
    return ''

could also become

if self.parent == self
    return ''   # why not None btw...

As I said, I'm new to python and I'll make a few tries once I build the test 
suite

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to