[Zope] Could namespaces have a .get method?

Chris Withers chrisw@nipltd.com
Thu, 07 Jun 2001 13:36:41 +0100


Casey Duncan wrote:
> 
> Couldn't you do:
> 
> "_.getattr(_,variable,_.None)"
> 
> to get the desired result?

If _.item===_['item'], then yes, btu I wasn't aware that was the case.

If it is, how would I get something called 'getitem', for example, from the
namesapce, use the _. notation?

cheers,

Chris