Python binding

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

Python binding

henaffp
I notice that the autodoc feature (%feature("autodoc")) is commented out in quantlib.i (line 82-84).
Yet, I've rebuilt the binding (version 0.9.9) with some %feature("autodoc","1") here and there, and from my limited tests, it seems to work, and it provides useful information (in IPython for example).

Does anyone know what the issue is? and what caused the autodoc feature to be dropped?

I'm using the python binding in a "C++ for finance using Quantlib" course, and would like to add relevant docstrings on selected classes.

Cheers,

Patrick Hénaff
Reply | Threaded
Open this post in threaded view
|

Re: Python binding

Luigi Ballabio
On Thu, 2010-07-29 at 09:01 -0700, henaffp wrote:
> I notice that the autodoc feature (%feature("autodoc")) is commented out in
> quantlib.i (line 82-84).
> Yet, I've rebuilt the binding (version 0.9.9) with some
> %feature("autodoc","1") here and there, and from my limited tests, it seems
> to work, and it provides useful information (in IPython for example).
>
> Does anyone know what the issue is? and what caused the autodoc feature to
> be dropped?

Might have been some issues with early versions of SWIG, after which
nobody bothered to try and enable it again.  If you can confirm that it
works now, we can enable it.

> I'm using the python binding in a "C++ for finance using Quantlib" course,
> and would like to add relevant docstrings on selected classes.

Ok. Please consider sending a patch when you're done.

Luigi


--

Of course, if people could just act consistently, they could keep
their desks clean, avoid cavities, lose weight, give up smoking,
play a musical instrument, and possibly even produce software on
a regular and timely basis.
-- Alistair Cockburn



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users