[PEAK] wiki IntroToPeak / deleting lazy bindings
Phillip J. Eby
pje at telecommunity.com
Thu Jun 17 14:10:33 EDT 2004
At 12:39 PM 6/17/04 -0500, Doug Quale wrote:
>Is it supposed to be possible to delete an attribute bound using
>binding.Make() before its value has been computed? It would be a noop
>in that case if it worked. Changing the code to
> def abortTransaction(self, ob):
> self.data = None
> del self.data
>makes it work. Is that the correct idiom?
Actually, the correct idiom is 'self._delBinding("data")', which works
correctly even if 'data' has not been computed. Please update the Wiki if
you have the chance. Thanks.
More information about the PEAK