some path issues on windows

Brad brad at
Sat Mar 29 04:51:07 CET 2008

Steven D'Aprano wrote:
> On Fri, 28 Mar 2008 22:31:07 -0400, Brad wrote:
>> When reading a file into a list that contains windows file paths like
>> this:
>> c:\documents and settings\brad\desktop\added_software\asus\a.txt
>> I get a list that contains paths that look like this:
>> c:\\documents and settings\\brad\\desktop\\added_software\\asus\\a.txt
> What makes you think that there are doubled backslashes in the string? 
> Look at this:

Sorry, my mistake... when testing with prints, printing the list itself 
showed double backslashes \\ in the paths, but when printing each path 
individually, it's only one back... should have tested more before 
posting. My apologies.


More information about the Python-list mailing list