Hi, all,
A couple of observations/questions from the switch, in SAGE, from
Python 2.4 to 2.5:
1) Although pickling is not supposed to work, in my case, it seems
to. I have a largish (~5MB) pickled file of one dict. I ran the
code in SAGE 1.4, and the file was correctly (?) unpickled. Is this
a surprise? The dictionary has strings as keys and (SAGE) integers
as values.
2) This is something I picked up from a guy at the gas station down
the road, so it may not be the right way to things, but: I need to
"copy" lists in my code (to avoid the "points to the same data"
problem of assignment). In the pre-1.4 code, I found that
L1 = copy.copy(L)
does what I want. This doesn't work in SAGE 1.4:
<type 'exceptions.AttributeError'>: 'function' object has no
attribute 'copy'
but
L1 = copy(L)
does work. My questions:
a) is this the right way to do this?
b) is there a way to have code that works both in SAGE 1.4 and
pre-1.4?
Justin
--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email
--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---