[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: os.path.commonprefix inadequacies
From:       Skip Montanaro <skip () pobox ! com>
Date:       2001-07-31 21:59:22
[Download RAW message or body]


    Dean> The os.path.commonprefix function at first glance seems like a
    Dean> useful function: to find a common ancestor of a bunch of
    Dean> paths.

I tried to get this sort of change adopted two years ago, but was unable to
convince people that it should operate on path elements instead of strings.
In fact, I actually updated the relevant bits of code in CVS but had to
retract the changes when the semantic change broke something of Mark
Hammond's.  My argument was that the common filesystem prefix of these two
paths

    /home/sally
    /home/sam

should be "/home/" (or "/home"), not "/home/sa".  You can browse the
python-dev archives for August 1999 to read all the details:

    http://mail.python.org/pipermail/python-dev/1999-August/thread.html

Search for "commonprefix".

-- 
Skip Montanaro (skip@pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/

-- 
http://mail.python.org/mailman/listinfo/python-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic