[Zope3-dev] Re: TALES PathExpr doesn't call old style classes

dev at projekt01.ch dev at projekt01.ch
Wed May 24 18:44:46 EDT 2006


Hi Philipp
 
[...]
> > Are there really usecases where something can go wrong if 
> we use the 
> > proposed PEP?
> 
> Calling something that may or may not be callable can yield 
> at least two different exceptions: TypeError or 
> AttributeError (on __call__). That means we'd already have to 
> catch two pretty common exceptions and therefore "eat" 
> exceptions that might occur inside the called routine.
[...] 

You are right, I missed that.

Regards
Roger Ineichen

> Philipp
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch
> 
> 



More information about the Zope3-dev mailing list