[Tutor] SPE Editor

Jeff Shannon jeff at ccvcorp.com
Fri Nov 5 01:42:16 CET 2004


Max Noel wrote:

>
> On Nov 4, 2004, at 21:13, Bill Mill wrote:
>
>> Also note that you should use backslashes, not frontlsashes. Too many
>> years on unix for me to switch when I use windows. The frontslashes
>> should work, but the proper method is to use backslashes.
>
>
>     However, in your programs, you should always use forward slashes. 
> Backslashes need to be escaped (more typing, and more chances you may 
> forget to escape one) and make your code non-portable (Bad Thing). 


Of course, if you're actually trying to write portable code, then you 
shouldn't be using *either* variety of slashes -- you should be using 
os.path.join() and the other os.path functions to do all of your 
file/path manipulations.  :)

Jeff Shannon
Technician/Programmer
Credit International




More information about the Tutor mailing list