Re: Re[2]: backslashes and r-strings r"abc"

"Mark Hahn" <[email protected]> Mon, 26 Jul 2004 23:39:23 -0700
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Michael Geary wrote:
>> From: Lenard Lindstrom
>> Backslash for line continuation in a raw string is
>> broken for both Prothon and Python anyways:

>> Does anyone have a problem with me removing escaped quotes
>> from r-strings for completeness and consistency?
>
> Wouldn't bother me. I think everybody gets confused by the way Python
> r-strings work. We all think they are "raw" strings when they aren't.

OK then, I'll take that as two votes for changing the meaning of r-strings
to the more intuitive "raw string" meaning that many Python programmers
mistakenly have for them.  I'll write this up as a 1.0 feature.

Basicly what I'll propose is that backslashes are always non-active except
when used as a continuation character and then they behave as Lenard
expected, which is the same as in a normal string.  Any other behavior at
the end of a line would produce non-useful results (what Python does now) or
an error (what Prothon does now).

This will make r-strings useful for both windows paths and regular
expressions.  It will also allow me to count one more wart as being fixed in
my count.