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

2022-03-30 Thread Jan Bronicki
Jan Bronicki added the comment: Hmm..., I get it, but Im not gonna lie it's pretty confusing given that in other places `//` works as a substitute for `/`. Maybe it should be mentioned in the documentation? -- ___ Python tracker <ht

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

2022-03-30 Thread Jan Bronicki
Jan Bronicki 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

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

2022-03-30 Thread Jan Bronicki
New submission from Jan Bronicki : The `//` path should be equivalent to `/`, and in some ways, it does behave like that in pathlib. But in the `relative_to` method on a `Path` object, it does not work This is causing our CI pipeline to fail. In the documentation here you can see `//` being