#16934: Finite fields coercion bug
----------------------------+------------------------
       Reporter:  jdemeyer  |        Owner:
           Type:  defect    |       Status:  new
       Priority:  major     |    Milestone:  sage-6.4
      Component:  coercion  |   Resolution:
       Keywords:            |    Merged in:
        Authors:            |    Reviewers:
Report Upstream:  N/A       |  Work issues:
         Branch:            |       Commit:
   Dependencies:            |     Stopgaps:
----------------------------+------------------------

Comment (by pbruin):

 This guess is corroborated by the fact that the following change also
 appears to fix the bug:
 {{{
 #!diff
 --- a/src/sage/rings/finite_rings/element_pari_ffelt.pyx
 +++ b/src/sage/rings/finite_rings/element_pari_ffelt.pyx
 @@ -202,7 +202,7 @@ cdef class
 FiniteFieldElement_pari_ffelt(FinitePolyExtElement):
          cdef Integer xi

          if isinstance(x, FiniteFieldElement_pari_ffelt):
 -            if self._parent is
 (<FiniteFieldElement_pari_ffelt>x)._parent:
 +            if self._parent ==
 (<FiniteFieldElement_pari_ffelt>x)._parent:
                  pari_catch_sig_on()
                  self.construct((<FiniteFieldElement_pari_ffelt>x).val)
              else:
 }}}
 After #16855, this change effectively does nothing.

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