[Zope] add LocalFS in python

Paul Winkler pw_lists at slinkp.com
Fri Oct 17 12:41:02 EDT 2003


On Fri, Oct 17, 2003 at 09:02:21AM -0700, Dennis Allison wrote:
> Tom, I don't think the backslashes need to be escaped here.

Sure you do. "\t" is the tab character!
These are plain old python strings, you always need to
escape backslashes or use "raw" strings:

>>> print 'c:\temp\test3'
c:      emp     est3
>>> print 'c:\\temp\\test3'
c:\temp\test3
>>> print r'c:\temp\test3'  
c:\temp\test3

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's WONDER GREEN MOVER MASTURBATOR!
(random hero from isometric.spaceninja.com)



More information about the Zope mailing list