Steve Dower <steve.do...@python.org> added the comment:
I agree it's worth improving the error message (and probably the docs too). It's never made clear that relative_to only looks deeper (won't ever generate leading ".." parts) - the closest hint in the docs is that os.path.relpath is different (and that isn't even in the relative_to() section). Tagging this easy/newcomer friendly. If you'd like to work on it, just post here - I'm happy to help get it merged. ---------- keywords: +easy, newcomer friendly nosy: +steve.dower versions: +Python 3.8, Python 3.9 -Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue23082> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com