[Zope3-dev] ? vs $
Florent Guillaume
fg@nuxeo.com
Fri, 14 Jun 2002 10:31:09 +0000 (UTC)
Steve Alexander <steve@cat-box.net> wrote:
> I have seen code that uses python:path('foo/%s/baz' % bar) rather than
> foo/?bar/baz. I don't think the use of ? as an interpolation character
> in path expressions is widely known.
It hadn't been documented anywhere until recently.
> Actually, it wouldn't take much to support both syntaxes. I'd rather
> that the ? syntax is deprecated though.
+1: use '$' to interpolate, '$$' to escape, and keep but deprecate '?'.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com