[Tutor] Window pathnames

Zandbergen Christian Christian.Zandbergen at swisslife.ch
Fri Oct 3 06:09:59 EDT 2003


Hi

I try to open a file with python 2.1.3 (deployed with Zope)

and the following Error occures:


	Python 2.1.3 (#35, Apr  8 2002, 17:47:50) [MSC 32 bit (Intel)] on
win32
	Type "copyright", "credits" or "license" for more information.
	>>> open("C:\\dslfjsl\jlsfjslfsj")
	Traceback (most recent call last):
	  File "<stdin>", line 1, in ?
	IOError: [Errno 2] No such file or directory:
'C:\\dslfjsl\\jlsfjslfsj'


It seems that one backslash always returns a double backslash.



With Python 2.3 it's OK. But since I want it to used in conjunction with
Zope I have to stick to Python 2.1.3 or not ......

Christian




More information about the Tutor mailing list