Antoine Pitrou added the comment: > Really, the test for whether to keep or remove the prefix should be to > remove the prefix and try and resolve the path again. If it succeeds, > remove the prefix; otherwise, keep it. This can only really be done as > part of the resolve() call, which would address the original issue, > but it may be quite a perf. hit.
It would also be prone to race conditions. All in all it sounds like a bad idea. I still think it should be asked for explicitly. I don't know how the method should be called, .extended() perhaps? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22299> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com