-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Do not compare types in coercion model richcmp() #24968
Comments
comment:2
I don't like this change. It will make it harder to port Sage to Python 3 by hiding errors in an It would be much better to just not compare types in the first place. |
Changed branch from u/embray/python3/sage-structure-coerce to u/jdemeyer/python3/sage-structure-coerce |
comment:4
If you say so--does this actually break anything? FWIW I have personally written code before that implements comparisons between metaclasses (!). I don't understand the implications when it comes to Sage though. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Changed author from Erik Bray to Erik Bray, Jeroen Demeyer |
comment:6
Let's see what the patchbot says. |
comment:7
Looks like the comparison between two objects' types dates as far back to f112feb0. It's probably not relevant. Theoretically it could be useful, but probably not for any currently existing code. |
comment:8
It seems to work on the patchbot. Erik, if you agree, you can set this to positive review. |
Reviewer: Jeroen Demeyer |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Frédéric Chapoton |
comment:10
Let us move on. |
Changed branch from u/jdemeyer/python3/sage-structure-coerce to |
Though small, the fix to
richcmp
is significant and fixes a lot of bugs.Component: coercion
Keywords: structure coerce
Author: Erik Bray, Jeroen Demeyer
Branch/Commit:
de73aad
Reviewer: Jeroen Demeyer, Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/24968
The text was updated successfully, but these errors were encountered: