#17229: Replace generator_cmp by generator_key and generator_reverse
-------------------------+-------------------------------------------------
Reporter: | Owner:
aapitzsch | Status: needs_work
Type: | Milestone: sage-7.3
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers: Travis Scrimshaw, Frédéric
python3 | Chapoton
Keywords: | Work issues:
python3 | Commit:
Authors: André | 3b815941cae5713d587d63e4ca5214f6816a0e0b
Apitzsch | Stopgaps:
Report Upstream: N/A |
Branch: |
public/17229 |
Dependencies: |
-------------------------+-------------------------------------------------
Changes (by chapoton):
* status: needs_review => needs_work
* reviewer: Travis Scrimshaw => Travis Scrimshaw, Frédéric Chapoton
Comment:
ok, looks almost good to me.
in the example
{{{
sorted(A.indices(), key=cmp_to_key(A.indices_cmp))
}}}
one should use instead the new `indices_key`
Maybe also we should avoid using `cmp_to_key` as much as possible.
--
Ticket URL: <http://trac.sagemath.org/ticket/17229#comment:20>
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.