[issue10395] new os.path function to extract common prefix based on path components

Rafik Draoui report at bugs.python.org
Mon Nov 5 21:45:58 CET 2012


Rafik Draoui added the comment:

Here is a new patch addressing some of storchaka review comments, and implementing a version in ntpath.

For the Windows version, I did as proposed in msg174819, but as I am not familiar with the semantics and subtleties of paths in Windows maybe this version of ntpath.commonpath is too simplistic and would return wrong results in some cases. I would like someone more knowledgeable in Windows to take care of it, or maybe just provide a test suite with lots of different corner cases that I could use to provide a better implementation.

----------
Added file: http://bugs.python.org/file27899/patch10395-2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10395>
_______________________________________


More information about the Python-bugs-list mailing list