[PEAK] Legacy code in events.Observable ?

ilja ilja at ank-sia.com
Thu Nov 16 09:39:08 EST 2006


I've recently was working with disabling/enabling events, and found one 
strange thing in implementation of event buffering (when event source is 
in `disabled` state).

The `Observable._buffer` method contains strange code:
     elif len(saved)>=len(self._callbacks):
         raise ValueError("Can't buffer event", self, event)

Does it have any purpose?
And if Yes than why such limitations are applied?


More information about the PEAK mailing list