#18026: Parent breakage because not every SageObject is idempotent
------------------------+----------------------------
   Reporter:  vbraun    |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-6.6
  Component:  pickling  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 Every !SageObject has a parent by #10962, possibly its own type. But that
 doesn't mean that `P(P(x))` returns `P(x)`, or even succeeds:
 {{{
 sage: Sequence([plot(sin)])
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-4-b6d3f68cd8b4> in <module>()
 ----> 1 Sequence([plot(sin)])

 /home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/sage/structure/sequence.pyc in Sequence(x, universe, check,
 immutable, cr, cr_str, use_sage_types)
     293         return PolynomialSequence(x, universe,
 immutable=immutable, cr=cr, cr_str=cr_str)
     294     else:
 --> 295         return Sequence_generic(x, universe, check, immutable, cr,
 cr_str, use_sage_types)
     296
     297

 /home/vbraun/Code/sage.git/local/lib/python2.7/site-
 packages/sage/structure/sequence.pyc in __init__(self, x, universe, check,
 immutable, cr, cr_str, use_sage_types)
     498         self.__universe = universe
     499         if check:
 --> 500             x = [universe(t) for t in x]
     501         list.__init__(self, x)
     502         self._is_immutable = immutable

 TypeError: __init__() takes exactly 1 argument (2 given)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18026>
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/d/optout.

Reply via email to