#16239: ZZ in the wrong category
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  sage-combinat
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.3
      Component:  categories         |   Resolution:
       Keywords:  integer ring,      |    Merged in:
  category                           |    Reviewers:  Nicolas M. ThiƩry
        Authors:  Travis Scrimshaw   |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  8f67fb521e4a1baf0a78a65a1b4359698b3bf872
  public/categories/fix_ZZ-16239     |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by tscrim):

 The warning is issued by `EnumeratedSetFromIterator` when
 `_test_an_element` calls `self(an_element)` where `self` is `E`. From
 there, the parent of `an_element` is `ZZ`, which the parent's default
 `__call__` tries to see if the parent is `self` by equality, leading to
 the `__eq__` call with `ZZ` being a different enumerated set.

 So how do we fix this? I'm not quite sure what the best way to proceed is,
 put the warning in the test, remove the warning, rework `_test_an_element`
 to better support facade parents, ...?

--
Ticket URL: <http://trac.sagemath.org/ticket/16239#comment:23>
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