New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate some cmp keyword in favor of key in factorizations #21145
Comments
Branch: public/21145 |
Author: Frédéric Chapoton |
New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
bot is green ! |
comment:8
Calls like |
comment:9
LGTM. @a-andre Those should go away by the time we switch to Python3 (hopefully we will be there before EOL for Python2). |
Reviewer: Travis Scrimshaw |
comment:10
Actually, I now understand Andre's comment, we should change -self.__x.sort(cmp=_cmp)
+self.__x.sort(key=cmp_to_key(_cmp)) in the deprecated code to be python2/3 compatible now (I interpreted it as a long-term, sorry!). |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Thanks, and sorry I didn't understand it earlier. |
Changed branch from public/21145 to |
as a step towards python3
let us try to get rid of
cmp=
in factorizationsCC: @tscrim @jm58660 @jdemeyer
Component: python3
Author: Frédéric Chapoton
Branch/Commit:
930414a
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/21145
The text was updated successfully, but these errors were encountered: