Is It Bug?

Chris Angelico rosuav at gmail.com
Sun Dec 8 11:04:05 CET 2013


On Sun, Dec 8, 2013 at 9:01 PM, Chris “Kwpolska” Warrick
<kwpolska at gmail.com> wrote:
> On Sun, Dec 8, 2013 at 2:22 AM, Roy Smith <roy at panix.com> wrote:
>> There's nothing you can do with raw strings that you can't do with
>> regular strings, but they're easier to read when you start to use
>> backslashes.
>
> Unfortunately, there is one.  A raw string cannot end with a backslash.

That's the other way around. There's something you can't do with a raw
string that you can do with a regular. But there's nothing you can do
with a raw that you can't do with a regular, as can be easily proven
by looking at the repr handling - nothing will ever have a repr that's
a raw string.

ChrisA



More information about the Python-list mailing list