Nov-10-2018, 02:22 PM
Thanks for your reply stullis, I thought it must be something like that. However, in this case I'm not trying to get a program to work but trying to understand exactly why this behaviour occurs. I thought that the reason for using raw strings was to ensure that no escaping by a backslash character took place. To me that means that
r'\'
should be exactly the same as '\\'
and should give the same result, but this is clearly not happening. Why?