[issue37130] pathlib.Path.with_name() handles '.' and '..' inconsistently

Brett Cannon report at bugs.python.org
Fri Jul 26 17:50:34 EDT 2019


Brett Cannon <brett at python.org> added the comment:

Anyone up for doing a PR that makes Path('.').name == '.'? It would be good to see if that would break the stdlib as a proxy as to how many people might be relying on these semantics. My hope is nothing breaks in which case we can make the change in 3.9 and notify people in What's New of the new, consistent semantics.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37130>
_______________________________________


More information about the Python-bugs-list mailing list