[Python-Dev] PEP 292, Simpler String Substitutions

Paul Prescod paul@prescod.net
Fri, 21 Jun 2002 12:54:53 -0700


Oren Tirosh wrote:
> 
>...
> No need for double backslash. No need for a special string prefix either
> because \( currently has no meaning.

I like this idea but note that \( does have a current meaning:

>>> "\("
'\\('
>>> "\(" =="\\("
1

I think this is weird but it is inherited from C... So it would take
time to phase this in. First we have to warn about \( and then give
people time to find instances of it and change them to \\(. Then we
could introduce a new meaning for it.

 Paul Prescod