[Zope3-dev] ? vs $

Jim Fulton jim@zope.com
Mon, 17 Jun 2002 06:44:54 -0400


Guido van Rossum wrote:
> 
> [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.

I don't agree. Path expressions are that, expressions. I really don't like
the idea that you would get the source for an expression, rather than the
data for an expression from a variable.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org