[issue47161] pathlib method relative_to doesnt work with // in paths

Jan Bronicki report at bugs.python.org
Wed Mar 30 08:44:01 EDT 2022


Jan Bronicki <janbronicki at gmail.com> added the comment:

But shouldn't it just work with `//` as a `/`? It seems like this is the behavior elsewhere. Sure I get that it cannot be done for 3.8. But the new error message implies that either `//` is not a subpath of `/` which it is, or that one is relative and the other is absolute, which is also false because both are absolutes

----------

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


More information about the Python-bugs-list mailing list