[issue44452] Allow paths to be joined without worrying about a leading slash

Vedran Čačić report at bugs.python.org
Sun Jun 27 00:44:12 EDT 2021


Vedran Čačić <vedgar at gmail.com> added the comment:

It doesn't make sense to "concatenate" one absolute path to another. / has a simple explanation: if you start at /foo, and then do cd bar, you'll end up in /foo/bar. But if you start at /foo, and then do cd /bar, you'll end up in /bar.

You mean, some of your users write '/some/path' when they mean 'some/path'? Then the users should be educated about the difference. These are not the same, just like '../some/path' is not the same as them, and '~some/path' is again something very different.

----------
nosy: +veky

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


More information about the Python-bugs-list mailing list