On Aug 25, 2008, at 3:34 PM, Paul McNett wrote:
>> if not self:
>> return
>
> Does that *always* work? IIRC, you can't check for self in the pre-
> init
> phase.
You can't have a dead object exception in pre-init. So it's moot for
that case.
>> ...to the top of the method. Maybe we should create a decorator so
>> all
>> we have to do is:
>>
>> @checkForDeadObjects
>> def someMethod(...
>
> Can we use decorators yet?
As of 0.9, sure! We no longer support 2.3, which allows for assuming
the availability of the decimal module and the use of decorators,
among other things.
One thing I started (but didn't get too far on) was removing all the
code that checks for decimal so that we can start thinking about a 0.9
release. We've got most of the bare exception cases cleaned up, and I
think that once we get the rest of the 2.3 cruft removed we can plan
on 0.9 going out the door.
BTW, I'm playing with the decorator, but it's hard to generate test
situations. So far, so good, though.
-- 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]