[Python-Dev] os.path.commonprefix (original) (raw)

Skip Montanaro skip@pobox.com
Mon, 9 Dec 2002 17🔞42 -0600


"Armin" == Armin Rigo <arigo@tunes.org> writes:

Armin> Can't we deprecate the thing and move it elsewhere? (where?)

How about just adding commonpathprefix? As I mentioned before, there's an implementation in Tools/scripts/trace.py.

Armin> In all cases, wouldn't it be worth a documentation note?

The docs for the function state, "Note that this may return invalid paths because it works a character at a time." I suspect that's sufficient.

Skip