[issue1934] os.path.isabs documentation error

Giampaolo Rodola' report at bugs.python.org
Sat Jan 26 11:23:06 CET 2008


Giampaolo Rodola' added the comment:

> Return ``True`` if *path* is an absolute pathname.  On Unix, that 
> means it begins with a slash, on Windows that it begins with a 
> backslash after chopping off a potential drive letter.

Actually the Windows part is not completely true since on Windows
pathnames containing slashes ('/') are also permitted and treated as if
they were backslashes ('\\').

>>> os.path.isabs('/')
True
>>> os.path.isabs('C:/')
True
>>> os.path.isabs('C:\\/')
True

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1934>
__________________________________


More information about the Python-bugs-list mailing list