This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nophke
Recipients Jeffrey.Kintscher, Nophke, brett.cannon
Date 2019-06-04.20:58:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559681920.77.0.982904385542.issue37130@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-06-04 20:58:40Nophkesetrecipients: + Nophke, brett.cannon, Jeffrey.Kintscher
2019-06-04 20:58:40Nophkesetmessageid: <1559681920.77.0.982904385542.issue37130@roundup.psfhosted.org>
2019-06-04 20:58:40Nophkelinkissue37130 messages
2019-06-04 20:58:40Nophkecreate