Brett Cannon <br...@python.org> added the comment:

Thinking about this a bit, I my gut says having Path('.').name == '.' makes 
more sense than returning ''. My reasoning is that in any case where there's a 
single value -- e.g. Path('spam') -- you end up with the part returned in 
`name`. That suggests to me that '.' isn't any more special or ambiguous than 
'spam' or '..'.

Antoine, what do you think?

----------

_______________________________________
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