Bad docs for os.path.isabs()

Ben Allfree benles at bldigital.com
Sun Nov 9 20:32:46 CET 2003


The docs for os.path.isabs() state:

      isabs( path)

Return True if path is an absolute pathname (begins with a slash).

This is false becase os.path.isabs("C:\\foo") == True

It should read:

      isabs( path)

Return True if path is an absolute pathname (begins with a slash or drive
letter).






More information about the Python-list mailing list