[issue11252] Handling statement OR assignment continuation '\' on Win32 platform
Suresh Kalkunte
report at bugs.python.org
Tue Feb 22 08:27:11 CET 2011
Suresh Kalkunte <sskalkunte at gmail.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue11252>
_______________________________________
More information about the Python-bugs-list
mailing list