[issue11252] Handling statement OR assignment continuation '\' on Win32 platform
Łukasz Langa
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:
unix>>> os.path.split('\\')
('', '\\')
win32>>> os.path.split('\\')
('\\', '')
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>
<http://bugs.python.org/issue11252>
_______________________________________
More information about the Python-bugs-list
mailing list