Re: [Quantlib-users] Observable Python objects
Posted by
Luigi Ballabio-2 on
Nov 11, 2003; 5:47am
URL: http://quantlib.414.s1.nabble.com/Observable-Python-objects-tp10448p10450.html
On 2003.11.11 06:07, Andre Louw wrote:
> Luigi,
>
> The Observer side works well (even using inheritance), the problem
> being that Python objects can only observe QuantLib C++ objects
> (those defined as type 'isObservable' in their SWIG interface files).
> I'm looking at the other side where a Python object becomes
> observable by other Python objects.
>
> Something in the line of
>
> class Foo(Observable):
> def __init__(self):
> Observable.__init__(self)
> def changeMe(self):
> self.notifyObservers()
Oh, I see.
Hmm, I'll have to give it some thought. Can you file this as a feature
request?
Later,
Luigi