Hi Florent, On 11 Sep., 22:26, Florent Hivert <florent.hiv...@lri.fr> wrote: > I'm not quite sure what's happening but at the end of > the file there is a > > # This registers the appropriate reduction methods (depends on #5985) > import copy_reg > copy_reg.pickle(DynamicMetaclass, DynamicMetaclass.__reduce__) > > import copy_reg > copy_reg.pickle(DynamicClasscallMetaclass, DynamicMetaclass.__reduce__) > > which seems to register some metaclass for the pickling system. Isn't it what > you need ?
Yes, that sounds very promising! When I read the Python documentation, I found some statement that the unpickling function needs to be registered, which surprised me, since in Sage I have never found it necessary to register the unpickling function. But you point to a place where the PICKLING (not unpickling) function is registered. So, perhaps that is the solution! Thank you very much, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org