Vedran Čačić added the comment:

That's because it is not commented code, it is a multiline string literal. And 
it is not raw, so \Un... is just an error, since n is not a valid hexadecimal 
digit. In the first code, \Un... is inside a raw string so it is read literally.

There is nothing to fix here. If you really want to continue confusing string 
literals and comments, you'll have to use r'''...''' to be a bit more general 
for this case.

----------
nosy: +veky

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31253>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to