mixing python libs with python interface

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

mixing python libs with python interface

newbie73
Is it possible to create a new class in Python (eg: new curve class) which extends the standard quantlib term structure classes and pass this new object into the existing quantlib framework?

I'd like to test a few term structure models that I have coded in Python with the QuantLib framework without having to recode them in C++.  Any idea if this is possible?
Reply | Threaded
Open this post in threaded view
|

Re: mixing python libs with python interface

Luigi Ballabio
On Tue, 2008-01-08 at 10:07 -0800, newbie73 wrote:
> Is it possible to create a new class in Python (eg: new curve class) which
> extends the standard quantlib term structure classes and pass this new
> object into the existing quantlib framework?

No, sorry.  The Python bindings don't have the necessary machinery to
make inheritance work.

Luigi


--

The purpose of abstraction is not to be vague, but to create a new
semantic level in which one can be absolutely precise.
-- W.E. Dijkstra



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users