[Python-Dev] Utopian String Interpolation

Paul Svensson paul@svensson.org
Wed, 16 Jan 2002 17:43:48 -0500 (EST)


On Wed, 16 Jan 2002, Paul Prescod wrote:

>Guido van Rossum wrote:
>> 
>>...
>> 
>> The "why" is that long ago Python didn't have raw strings but it did
>> have regular expressions.  I thought it would be painful to have to
>> double all backslashes used for the regex syntax.
>
>Aha.
>
>> It would be hard to change this policy now.
>
>How about an optional warning which, after a year or so, would be turned
>on by default, and then a year or so after that would be an error? 

Such a warning might prove to be a useful debugging tool,
even if the language never changed.
Maybe it would be a useful addition to PyChecker or some similar tool ?

foot-in-the-door-ly,

	/Paul