#4698: [with patch, needs review] a single make_element function for pickling is
hard to maintain
---------------------+------------------------------------------------------
 Reporter:  burcin   |       Owner:  burcin    
     Type:  defect   |      Status:  new       
 Priority:  major    |   Milestone:  sage-3.2.2
Component:  algebra  |    Keywords:            
---------------------+------------------------------------------------------
 All subclasses of `sage.structure.element.Element` end up using
 `sage.structure.element.make_element` for unpickling. This design is very
 hard to maintain, especially when trying to keep backward compatibility
 with older pickles.

 Python's pickling protocol via `__getstate__()` and `__setstate__()` moves
 the implementation of pickling/unpickling to the subclasses. [1] Attached
 patch changes sage.structure.element.Element to use this protocol.

 [1] http://www.python.org/doc/2.5/lib/pickle-inst.html

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4698>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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