What happened to dospath module in Python2.3a1?

Skip Montanaro skip at pobox.com
Wed Feb 12 11:32:07 EST 2003


    >> You should really use os.path instead of posixpath/dospath/whatever...

    Jane> The script is running on linux and should manipulate dos
    Jane> paths. Does os.path work in this case?

Nope.  DOS support in Python is fading.  Does ntpath not work for your
needs?  If not, try to make a case that it should still be in the
distribution.  As far as I can tell ntpath is essentially a superset of
dospath.  The only function in ntpath not in dospath is splitunc, which you
probably don't need.  Also, nt accepts paths with / as the delimiter (and
thus, so does ntpath), which DOS never did.

Skip





More information about the Python-list mailing list