Suresh Kalkunte <[email protected]> added the comment:
lukasz.langa, confirming the difference in return values for glob.glob() on
Win32/Cygwin vs. Linux as the following results show:
--------------------------------------------------------
F1()
ret_val1
F2(ret_val1)
ret_val2
--
\\\
Cygwin
///
--
string.split()
/
glob.glob('/')
['/']
string.split()
\
glob.glob('\')
['\\']
--
\\\
Win32
///
--
string.split()
/
glob.glob('/')
['/']
string.split()
\
glob.glob('\')
['\\']
--
\\\
Linux
///
--
string.split()
/
glob.glob('/')
['/']
string.split()
\
glob.glob('\')
[]
--------------------------------------------------------
For my education, is there a reason why glob.glob('\') on Win32/Cygwin returns
['\\'] instead of [] in Linux ?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11252>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com