[Zope3-dev] ? vs $

Guido van Rossum guido@python.org
Sat, 15 Jun 2002 21:09:28 -0400


[me]
> > Do you *really* want to have an escape to include a / in a pathname
> > component?  That sounds like an invitation for obfuscation.

[Jim]
> You can traverse to objects in TALES that you can't traverse to in
> URLs. We might be looking up an item in a dictionary. Lets say I'm
> iterating over the keys in some dictionary and want to display a
> value. I wouldn't want the meaning of the path expression to change
> just because the key happened to contain some magic character.

But we're talking about path expressions here.  These act roughly like
nested namespaces.  I wouldn't think that an arbitrary key from a
dictionary would make much sense.  But I would expect that there are
uses for having a variable be a shortcut for several segments in a
path expression.

--Guido van Rossum (home page: http://www.python.org/~guido/)