New submission from lilei <v...@163.com>: $ python Python 2.7.1 (r271:86832, Apr 16 2011, 23:27:12) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print r'\' File "<stdin>", line 1 print r'\' ^ SyntaxError: EOL while scanning string literal >>>
I just want to print a raw string r'\', however, SyntaxError. What is the reason? ---------- components: None messages: 154538 nosy: vbem priority: normal severity: normal status: open title: print r"\" cause SyntaxError type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14147> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com