On 2015-05-04 13:55, Nathann Cohen wrote:
Something vaguely like that is possible using __getstate__ and __setstate__,
see http://trac.sagemath.org/ticket/18109
Err.. Well, in my case the function I call is not the class'
constructor.
That doesn't matter.
I ended up writing an unpickle function, which is more or less
forwarding a dictionary to the constructor ;-)
I guess it would be simpler to use __setstate__() in your use case.
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.