On Aug 25, 2008, at 4:17 PM, Paul McNett wrote:

>>      You can't have a dead object exception in pre-init. So it's moot for
>> that case.
>
> You can't check for self in pre-init, or a different exception will be
> raised.


        Yes, I know. But why would you be testing for a dead object in a pre- 
init method?

        Here's what we're doing now: when we get dead object errors, we add  
try/except blocks around that code, or add 'if not self' code at the  
top of that method. Now we just decorate that method. See the grid  
code I just committed: I removed the dead object checks and just  
decorated the method. Try uncommenting the 'print' line in the  
decorator to show that it is indeed catching these errors.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to