Re: python binding(and SWIG interface in general)
Posted by Luigi Ballabio on Apr 05, 2006; 3:12am
URL: http://quantlib.414.s1.nabble.com/python-binding-and-SWIG-interface-in-general-tp11039p11040.html
On 03/25/2006 05:41:29 AM, gary ng wrote:
> I tried to use the python binding instead of C++ but it seems that if
> I want to do anything that is not in quantlib, I still need to
> program them in C++ then expose my implementation in SWIG, instead of
> implementing the logic in python. Is this the intended usage of the
> binding ?
It is not the intended usage, but the bindings often lag a bit behind
the library. In your case, the bindings should be extended so that
HullWhite public members are exposed. I'll try and do it for next
release---or you can modify shortratemodels.i and send me a patch. Feel
free to ask for advice if you undertake the task.
Later,
Luigi
----------------------------------------
Hofstadter's Law:
It always takes longer than you expect, even when you take
Hofstadter's Law into account.