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
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com