Joe Smith wrote: > AFAICT there would be no way to use raw strings with that method. > ... > Additional backslashes are added to raw strings to remove anything that > resembles an escape sequence. You seem to be very confused about the way strings work. If you look at the repr() of a string containing a backslash, you will see two backslashes, but they're only in the repr(), *not* in the string itself. Some things to ponder: >>> "\{" == r"\{" True >>> len("\{") 2 >>> len(r"\{") 2 -- Greg
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4