This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2008-01-25.21:54:53
SpamBayes Score 0.29183775
Marked as misclassified No
Message-id <1201298153.58.0.265967010684.issue1934@psf.upfronthosting.co.za>
In-reply-to
Content
The current os.path.isabs documentation says:

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

The "begins with a slash" part is incorrect since certain systems use a
different pathname notation.
For example, on Macintosh (where os.sep == ":") this is an absolute
pathname:

hardDriveName:folderName1:folderName2:fileName.ext

...and this is a relative one:

:folderName1:fileName.ext


Moreover, on Windows os.path.isabs('\\') returns True since '\\' is an
alias for the current drive letter (e.g. C:\\) hence, independently from
what said before, the documentation should include also the "backslash"
term.
I think it would be better removing the "(begins with a slash)" part at all.
History
Date User Action Args
2008-01-25 21:55:53giampaolo.rodolasetspambayes_score: 0.291838 -> 0.29183775
recipients: + giampaolo.rodola
2008-01-25 21:55:53giampaolo.rodolasetspambayes_score: 0.291838 -> 0.291838
messageid: <1201298153.58.0.265967010684.issue1934@psf.upfronthosting.co.za>
2008-01-25 21:54:53giampaolo.rodolalinkissue1934 messages
2008-01-25 21:54:53giampaolo.rodolacreate