#5483: [with patch; needs work] Add explain_pickle module; allow overriding 
class
lookup for unpickling
-------------------------+--------------------------------------------------
 Reporter:  cwitty       |       Owner:  cwitty    
     Type:  enhancement  |      Status:  new       
 Priority:  major        |   Milestone:  sage-4.0.1
Component:  misc         |    Keywords:  pickling  
-------------------------+--------------------------------------------------

Comment(by cwitty):

 This appears to be a difference in Python's repr(), possibly between
 Python 2.5.2 (from Sage 3.4.2 on my laptop, where I developed the patch)
 and Python 2.5.4 (from Sage 4.0 on sage.math).

 Python 2.5.2:
 {{{
 >>> v = ([],)
 >>> v[0].append(v)
 >>> repr(v)
 '([([...],)],)'
 }}}

 Python 2.5.4:
 {{{
 >>> v = ([],)
 >>> v[0].append(v)
 >>> repr(v)
 '([(...)],)'
 }}}

 I don't have time to experiment further right now, but I would suggest
 changing the expected output to the new version, and if it's consistent
 across all the test platforms then chalk it up to a change in Python and
 call it good.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5483#comment:8>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to