File call error message (double backslash)

John Machin sjmachin at lexicon.net
Wed Mar 9 02:21:11 CET 2005


Fred wrote:
> Hi
> I am writing on an application, that is supposed to read a file into
a
> single string:
> My program though, when I run it, gives me an error, that the called
> file is non existent
> 'C:\ \Documents and Settings\ \Fred\ \My Documents\ \School\ \Bio'
> Is it normal that python adds the  space and extra backslash? Because
> if I print the path of the called file before the open command, it
> normally prints it with only one backslash.

The space between the \ \ is NOT normal. Please post the exact (copy
and past!) text of the trace-back and error message.




More information about the Python-list mailing list