Dear support team, a basic question whose answer i was neither able to find in the Sage Programming Guide nor in http://modular.math.washington.edu/sage/doc/html/tut/:
Suppose i have an extension class Foo and an instance X of Foo. What methods must Foo provide in order to make things work like the following? save(X,'bla') Y=load('bla') The class Foo has a method "save" and a method "load", and the following works: X.save('bla') Y=Foo('') # initializes Y as instance of Foo Y.load('bla') But apparently for supporting the simpler syntax "save(X,'bla') load('bla')" this is not enough. Also I found some rumor in the doc strings about a method "dumps", and that the result of "dumps" can be used by "loads" in order to produce an object. But apparently "loads" is not the same as "eval": If i have a string s that makes "eval(s)" to return a copy of X, "loads(s)" fails. So what is Foo.dumps supposed to do? I'm sure that there is some written documentation on how to do those things. Simply i couldn't find them. Cheers Simon --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---