[issue11252] Handling statement OR assignment continuation '\' on Win32 platform
report at bugs.python.org
Wed Feb 23 21:49:36 CET 2011
Łukasz Langa <lukasz at langa.pl> added the comment:
OK, now I know more about glob than I ever wanted to! :) Basically it comes down to this:
This is why \ is recognized as the root directory on Win32 and as a non-existent file on Unix.
In case of / both Unix and Win32 treat it as a valid directory separator so `os.path.split('/')` returns `('/', '')`. This is why / is recognized as the root directory on both systems.
Does this answer your questions?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list