Why os.path.isabs("/") on Windows returns True?

"Martin v. Löwis" martin at v.loewis.de
Fri Feb 1 20:14:34 EST 2008


> Is there a reason why "/" is considered an absolute pathname by
> CPython?

Yes: it tests whether a path is absolute on the current volume.
Use the source, Luke.

Regards,
Martin



More information about the Python-list mailing list