Hi Simon, You probably want to have a look at sage/structure/dynamic_class.py which is the file solving those kinds of problems for dynamic classes created by the category system. 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 ? Hope this help, Florent -- 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