#20062: Make _floordiv_() for power series a deprecated alias for _div_()
-------------------------------------+-------------------------------------
       Reporter:  pbruin             |        Owner:
           Type:  task               |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-7.1
      Component:  algebra            |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Peter Bruin        |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/pbruin/20062-PowerSeries_floordiv|  e9719f7399ffab100407a360c16fe0596e7f2689
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by pbruin):

 I tried to (1) add a method `_floordiv_` to
 `EuclideanDomains.ElementMethods`, and (2) make `DiscreteValuationRings` a
 subcategory of `EuclideanDomains`.  However, `f // g` then still complains
 that the parents do not support this operator.  If I understand correctly,
 this is because `RingElement._floordiv_` comes before
 `EuclideanDomains.ElementMethods._floordiv_` in the method resolution
 order.  We cannot remove the first one because it must be implemented in
 `RingElement`, being a `cpdef` method.

 Jeroen, do you (as the author of e.g. #2034) perhaps know a way around
 this?

--
Ticket URL: <http://trac.sagemath.org/ticket/20062#comment:5>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to