Re: Python - pickling quantlib objects?
Posted by
Didrik Pinte-5 on
URL: http://quantlib.414.s1.nabble.com/Python-pickling-quantlib-objects-tp13769p13772.html
Hi Matthew,
On 2 December 2012 17:53, Matthew Gline <
[hidden email]> wrote:
> Hello all,
>
> I have a general question for anyone out there who is using QuantLib in
> Python:
>
> SWIG objects are, as I understand them, by nature not pickleable. This
> doesn't matter for day-to-day use of the library but it creates some issues
> when trying to build something more robust around it: it's difficult to
> store QuantLib objects in databases, etc.
>
> Has anyone encountered this issue / found a workaround for it? Obviously one
> solution is to store all of the inputs required to create the objects, but
> this is a fairly expensive workaround if you're dealing with a sizable
> number of curves or instruments... Does anyone know if the PyQL bindings
> that use Cython result in pickleable objects?
The Cython wrappers in PyQL could support some pickling and provide
some of what you want. It doesn't do anything like that for now. If
they are some functionalities available on the C++ side, we could
potentially use that. Otherwise, it will be some work to have a decent
serialization support on the python layer ...
-- Didrik
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users