[Zope] dtml-calendar question.

R. David Murray bitz@bitdance.com
Thu, 3 Aug 2000 13:27:23 -0400 (EDT)


On Thu, 3 Aug 2000, Chris Withers wrote:
> > In what way does it *not* follow Python (expression) syntax rules?
> 
> _['something'] doesn't just return the value from the dictionary which
> has the 'something' key, if it's callable, it'll try to call it and then
> return that... not nice :(
> 
> If you want to be safe, use _.getitem('something',0)...

True enough, that's a somewhat weird semantic, but it's still
following python *syntax* rules <grin>.

--RDM