STINNER Victor added the comment: Ned Batchelder wrote an article about this function in 2010 :-)
https://nedbatchelder.com/blog/201003/whats_the_point_of_ospathcommonprefix.html """ The docs helpfully include the warning: Note that this may return invalid paths because it works a character at a time. But it should say: This function is in the wrong place, and has nothing to do with paths, don't use it if you are interested in file paths! """ ---------- nosy: +haypo, nedbat _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30267> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com