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

Dmitry Vasiliev lists at hlabs.spb.ru
Wed May 24 03:02:23 EDT 2006


Dieter Maurer wrote:
> Dmitry Vasiliev wrote at 2006-5-23 17:06 +0400:
>> ...
>> PEP-3100 suggest "just call the object and catch the exception" instead of use 
>> "callable()". So maybe we can write:
>>
>> try:
>>     ob()
>> except:
>>     pass
>> return ob
>>
>> Unfortunately exceptions still will be masked.
> 
> Yes, and therefore *NEVER* do this.

I don't like it also but the PEP suggest so... :-)

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru


More information about the Zope3-dev mailing list