Re: SWIG Python - failure to register observer with observable
Posted by Luigi Ballabio on URL: http://quantlib.414.s1.nabble.com/SWIG-Python-failure-to-register-observer-with-observable-tp15650p15696.html
Do you have some code that reproduces the problem?
Luigi
On Thu, Jul 24, 2014 at 12:46 PM, aborodya <[hidden email]> wrote:
> Hi,
> I've been trying to register an Observable of (in my case it is an
> ImpliedTermStructure object, let's say ts=ImpliedTermStructure(...) ) with
> an observer which I created as follows:
> class MyObserver(Observable): ... (nothing special is going on there - just
> some attributes are being initialized and an update(self) method is being
> implemented.
>
> When trying to do MyObserver.registerWith(ts) I'm getting an error:
>
> TypeError: in method 'Observer__registerWith', argument 1 of type
> 'PyObserver *'
>
>
> What am I missing here?
>
> Thanks!
>
>
>
> --
> View this message in context: http://quantlib.10058.n7.nabble.com/SWIG-Python-failure-to-register-observer-with-observable-tp15650.html > Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds > _______________________________________________
> QuantLib-users mailing list
> [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users