Re: [Python-3000] cleaning up *path.py code duplication

2006-08-25 Thread Jack Diederich
Ooph, there is some dissonance in the comments and the code. Cut-n-paste errors I suppose. -- ntpath.py -- def islink(path): """Test for symbolic link. On WindowsNT/95 always returns false""" return False # This follows symbolic links, so both islink() and isdir() can be true # for th

Re: [Python-3000] cleaning up *path.py code duplication

2006-08-25 Thread Guido van Rossum
Sounds like a great 2.6 project. Beware of things that are intentionally different between platforms of course! --Guido On 8/25/06, Jack Diederich <[EMAIL PROTECTED]> wrote: > While checking find() uses in the stdlib I noticed that the various > path modules have duplicate code and docstrings for

[Python-3000] cleaning up *path.py code duplication

2006-08-25 Thread Jack Diederich
While checking find() uses in the stdlib I noticed that the various path modules have duplicate code and docstrings for some generic path manipulations. Delightfully they even have different implementations and docstrings for identical functions. splitext() is a great bad example - os2emxpath.spli