-
-
Notifications
You must be signed in to change notification settings - Fork 601
Replace some __cmp__() by rich comparison #17175
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
Comments
New commits:
|
Branch: u/aapitzsch/ticket/17175 |
Commit: |
Reviewer: R. Andrew Ohana |
comment:2
Thanks for working on this. I haven't looked through everything thoroughly yet, but here are some initial comments/questions:
|
comment:3
Removing
We should keep it for now and check again when all |
comment:6
Replying to @ohanar:
Didn't know about it. Fixed now.
Fixed this.
Added functions and tests. |
comment:7
Hi André, how did you select the modules from the mountain of affected modules from ticket:16537? Is there a common theme? Just curious! By the way, after seeing the size of the cmp-problem in ticket:16537 I was so shocked that I stopped working on Sage and Python 3! So this gives me some fresh motivation ... What is the reason for explicitly defining all 4 comparisons in |
comment:8
Replying to @wluebbe:
Up to some exceptions I chose the
The main "problem" of replacing
All comparisons need |
comment:9
I do not think that it is always the right approach to solve the easier problems before the hard ones. We have done this with good reason for stage 1 (#15980). But the completion of stage 1 has to precede the completion of stage 2. And now we have the hard problems that remain in stage 1! I think that stage 2 (#16052) could use a tool like https://github.com/PythonCharmers/python-future to good effect. But we should try to complete stage 1 as soon as possible: if we cannot solve those remaining hard problems then Sage will not available under Python 3. Anyway I will have a look at #16529 ;-) |
Work Issues: merge conflicts |
comment:11
Same question as in #16537: Can the work be reduced by including the code in http://www.voidspace.org.uk/python/articles/comparison.shtml into the |
comment:12
With the new arguments in #16537 I think this is at least needs_info, if not wontfix. |
comment:16
This is way outdated. Let it be closed as invalid. |
Changed reviewer from R. Andrew Ohana to Frédéric Chapoton |
This is part of #16537.
Component: python3
Work Issues: merge conflicts
Author: André Apitzsch
Branch/Commit: u/aapitzsch/ticket/17175 @
d419515
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/17175
The text was updated successfully, but these errors were encountered: