#16276: fixes PolynomialElement.mod()
-------------------------------------+-------------------------------------
       Reporter:  Bouillaguet        |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  basic arithmetic   |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Charles            |    Reviewers:
  Bouillaguet                        |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  07221cbd32a822e7d4ba40762bcf843a10a6c715
  u/Bouillaguet/ticket/16276         |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by jpflori):

 As far as the current commit is concerned, I'd say a simple addition of
 {{{
     mod = __mod__
 }}}
 would do the trick rather than copying the `__mod__` function.
 Otherwise, as there is a `quo_rem`function defined, I would say we can
 rely on that, and let it raise an exception if it wants.
 Note that you can already issue:
 {{{
 f % g
 }}}
 and trigger the call to `quo_rem`.

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