How come something like '\'  causes an error? Here is what I mean.

[cdal...@localhost ~]$ python
Python 2.6.2 (r262:71600, May  3 2009, 17:04:44)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "test \"
  File "<stdin>", line 1
    print "test \"
                 ^
SyntaxError: EOL while scanning string literal
>>>

I mean, isn't the '\' a character just like the letter 't'?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to