Can I get a technical explanation on the following error

Hans Müller heintest at web.de
Sun May 24 14:47:24 EDT 2009


Try this:

print "\\"

\ is the escape character, it masks the meaning of the next chararcter.

If you write print "\" python tries to print " (the meaning of " as
the string delimiter is beeing masked) and finds no closing "
This is why you got the error.

hth.

Greetings
Hans



More information about the Python-list mailing list