To summarize: Plain python cannot pickle inner classes or functions: >>> class outer(object): ... class inner(object): ... pass >>> o = outer() >>> pickle.dumps(o) (works) >>> i = o.inner() >>> pickle.dumps(i) (ERROR)
The work-around is to make the cone factory a top-level class (or function), then it can be pickled just fine. Volker -- 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