#16540: Regression in Pari finite field interface
------------------------------------------------+------------------------
       Reporter:  defeo                         |        Owner:
           Type:  defect                        |       Status:  new
       Priority:  major                         |    Milestone:  sage-6.3
      Component:  finite rings                  |   Resolution:
       Keywords:  finite_field regression pari  |    Merged in:
        Authors:                                |    Reviewers:
Report Upstream:  N/A                           |  Work issues:
         Branch:                                |       Commit:
   Dependencies:                                |     Stopgaps:
------------------------------------------------+------------------------

Comment (by pbruin):

 PARI's `FF_pow` requires the exponent to be a `t_INT`, but does not check
 the type, and `FiniteFieldElement_pari_ffelt.__pow__()` does not enforce
 this either.  (Actually it also assumes the exponent to be an integer,
 since it checks if it is negative.)  We could simply convert the exponent
 into an `Integer`; the only drawback is that we would have to do a
 separate check for `IntegerMod` with an incorrect modulus if we want to
 raise a `ValueError` in that case.

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