#15149: Bug in pickling of toric varieties, II
-------------------------------------+-------------------------------------
       Reporter:  jkeitel            |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-6.0
      Component:  algebraic          |   Resolution:
  geometry                           |    Merged in:
       Keywords:  toric              |    Reviewers:
        Authors:                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  15a41647c634421769963f6b6ccabe65c7907789
  u/jkeitel/toric_pickling_2         |     Stopgaps:
   Dependencies:  #15050             |
-------------------------------------+-------------------------------------

Comment (by vbraun):

 In theory, I would agree that one needs to implement `__reduce__`
 (basically, for all classes that inherit from !UniqueRepresentation). But

 1. It is really hard to doctest. Not only must you restore all the data
 for the hash, but if there is a hash collision then you also need all the
 data for `__cmp__()`.

 2. In practice, Python doesn't support circular `__reduce__` so we'll end
 up just triggering that bug.

--
Ticket URL: <http://trac.sagemath.org/ticket/15149#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to