backslash woes........

Duncan Booth duncan at NOSPAMrcp.co.uk
Tue Jul 10 06:45:35 EDT 2001


"Duncan Booth" <duncan at NOSPAMrcp.co.uk> wrote in
news:Xns90DA74BD3B968duncanrcpcouk at 127.0.0.1: 

> Martin Franklin <martin.franklin at westerngeco.com> wrote in
> news:3B4AC7C2.DD53F6BB at westerngeco.com: 
> 
>> I am having trouble with windows path names (i'm a UNIX'ite)

Another useful tip to remember is that except for the DOS command prompt, 
and some badly behaved applications, Windows actually supports both forward 
slash and backslash as path separators. So in a Python program (or most 
other languages) you can use forward slashes anywhere you want to write a 
pathname.


-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list