Thanks a lot, Keshav and Simon!

This would sound like a flaw in the design to me, if there was no way
to reconstruct a dictionary from its display form. In fact, it usually
works (also for lists, arrays etc.), just not with units, as their
input and display forms are different. I think that it would be useful
to have a way to recover the input form of anything that was
originally entered in textual form. Would it be possible to write a
function for it?

def input_form(obj):
    return str(obj)+' = '+???

The reason why I need this is that I want to be able to easily and
transparently import a summary of the results from one worksheet into
another, in order to split up very long worksheets.

At the moment, I just do
sage: print 'udict = '+str(udict)

and then copy and past the output. It will work with Simon's trick,
but it should be easier.

Cheers
Stan



-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to