[Python-Dev] Utopian String Interpolation

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


On Wed, 16 Jan 2002, Guido van Rossum wrote:

>> Yeah, I understood that. I just don't understand why it isn't like most
>> other things in Python. Python tends to be strict about things that are
>> likely mistakes, rather than helping you "debug them" after passing them
>> through silently.
>> 
>>  Paul Prescod
>
>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.
>
>It would be hard to change this policy now.

Yeah, it would be like, say, changing the semantics of integer division.
Sometimes it's better to do what's right than what's easy.

	/Paul