#17229: Replace generator_cmp by generator_key and generator_reverse
-------------------------------------+-------------------------------------
       Reporter:  aapitzsch          |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.9
      Component:  misc               |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:  André Apitzsch     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/aapitzsch/ticket/17229           |  f7edf1e577516a9ed7eeae69f24b3402a1803212
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by aapitzsch):

 Replying to [comment:2 vdelecroix]:
 > 1. Could you motivate a bit more this change. I do not find simpler to
 use a `key` function instead of a `cmp` function.
 >

 In Python 3 the `cmp` keyword has been removed in favor of `key` and
 `reverse` arguments. To reduce the overhead for a user to provide `cmp`
 and `key` function (e.g. one for sage's `print_options()` and the other
 for python's `sort()`) I suggest to harmonize the parameters.

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