"R. David Murray" wrote:
> On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
> > | Well, yeah.  A restricted python environment.  The point being, it follows
> > | python syntax rules <grin>.
> >
> > kind of... :-)
> 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)...



Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to