A programmer who has put '\latex' as part of a string literal (to pick a not entirely random example) presumably actually wants '\\latex', which is what Python currently translates it to. This was a ...
There is one exception to the rule that you can mostly ignore the fact that Python strings are Unicode strings – comparing strings. In practice, comparing strings has always been harder than it might ...
Nice article. I ran into this recently, complicated by the re module in python2 not expanding unicode escape sequences, making it difficult to use the raw string solution for some patterns. At least ...