#20998: convert _cmp_ to __richcmp__ in some pyx files
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  chapoton               |
           Type:         |       Status:  needs_work
  enhancement            |
       Priority:  major  |    Milestone:  sage-7.3
      Component:         |   Resolution:
  python3                |
       Keywords:         |    Merged in:
        Authors:         |    Reviewers:
  Frédéric Chapoton      |
Report Upstream:  N/A    |  Work issues:
         Branch:         |       Commit:
  public/20998           |  f4d65c76e96648ce0b1e0bd17122a3eec6bce18f
   Dependencies:         |     Stopgaps:
-------------------------+-------------------------------------------------

Comment (by jdemeyer):

 First of all, the following are 4 different independent things:

 1. Getting rid of `cmp=` arguments to `sort()` for example.

 2. Getting rid of the `cmp()` function.

 3. Getting rid of `__cmp__` methods.

 4. Getting rid of `_cmp_` methods.

 The last is not needed because `__richcmp__` will call `_cmp_` if needed.

 For the first 3, I really prefer to consider them as different issues and
 fix them in the order listed above.

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

Reply via email to