#10024: dump()/dumps() fails for class Polyhedron
------------------------------------------------------+---------------------
   Reporter:  terhorst                                |       Owner:  mhampton
       Type:  defect                                  |      Status:  new     
   Priority:  minor                                   |   Milestone:          
  Component:  geometry                                |    Keywords:          
     Author:  polyhedron polyhedra pickle dumps dump  |    Upstream:  N/A     
   Reviewer:                                          |      Merged:          
Work_issues:                                          |  
------------------------------------------------------+---------------------
 Polyhedra (objects of class Polyhedron) cannot be dumped or saved:

 {{{
 sage: polytopes.dodecahedron(QQ).dumps()
 ---------------------------------------------------------------------------
 PicklingError                             Traceback (most recent call
 last)

 /home/terhorst/<ipython console> in <module>()

 /opt/sage/local/lib/python2.6/site-packages/sage/structure/sage_object.so
 in sage.structure.sage_object.SageObject.dumps
 (sage/structure/sage_object.c:2108)()

 PicklingError: Can't pickle <type 'function'>: attribute lookup
 __builtin__.function failed
 }}}

 As a workaround, I pickle a hash of the rays, vertices, and lines defining
 the polyhedron.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10024>
Sage <http://www.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