[Zope3-dev] ? vs $

Barry A. Warsaw barry@zope.com
Fri, 14 Jun 2002 10:16:37 -0400


>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    >> +1: use '$' to interpolate, '$$' to escape, and keep but
    >> deprecate '?'.

    GvR> In Zope3, why bother to keep the '?' ?

I agree, TOOWTDI.  Except when TO2WTDI. :)

FWIW, it wouldn't be hard, IMO to add $-interpolation to Python.  In
fact, converting from $-strings to %-strings (and back, with some
error checking) can be done with a couple of small Python functions.
I've got code in Mailman to do exactly that.  It also wouldn't be hard
to add built-in support in Python, and I think we should do it for
Py2.3.

-Barry