[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-24 Thread Suresh Kalkunte
Suresh Kalkunte added the comment: Thanks for the education (hopefully a slight detour for you 8-). I included '/' to convey uniform behavior across platforms. I will take it that the difference in what os.path.split() returns on Win32 vs. Linux is not a bug in Python since its Win32 users ha

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-23 Thread Łukasz Langa
Łukasz Langa 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 U

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte
Suresh Kalkunte 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.sp

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Suresh Kalkunte
Suresh Kalkunte added the comment: Yes, the easier fix is to change build.conf file to not use '\'. However, > on Linux `glob.glob('\\')` == `[]` so nothing is actually added. > OTOH on Windows `glob.glob('\\')` == `['\\']` is more definite compared to > They work on Linux by mere coinciden

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-21 Thread Łukasz Langa
Łukasz Langa added the comment: Unfortunately the bug is not in ConfigParser but rather in your gen-build.py. There is nothing special about backslashes and ConfigParser reads them in as part of the value for ldap/paths. But then look what happens in gen-build.py:215. The `split()` returns [

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-20 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-20 Thread Suresh Kalkunte
Suresh Kalkunte added the comment: If the defect was with the script, the failure to bypass the '\' notation would have to be true on Redhat Linux. Since build.conf with '\' notation gets parsed without errors on Redhat Linux, I am under the impression the parsing performed by Python on Win32

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-20 Thread Georg Brandl
Georg Brandl added the comment: Why do you think this is a bug in Python as opposed to one in the script parsing the .conf file? -- nosy: +georg.brandl resolution: -> invalid status: open -> pending ___ Python tracker

[issue11252] Handling statement OR assignment continuation '\' on Win32 platform

2011-02-19 Thread Suresh Kalkunte
New submission from Suresh Kalkunte : Referring to URL for files used to build the Apache Portable Runtime Utilities library using Python 2.7.1(AMD64) or 2.6.5(Cygwin) on a Win32 system (Windows 7), when apr/build/gen-build.py (http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/build/gen-buil