-
-
Notifications
You must be signed in to change notification settings - Fork 654
Description
As discussed in the sage-devel thread starting with <o21nte$6jp$1@blaine.gmane.org>
(https://groups.google.com/d/msg/sage-devel/YVFdxPH6avk/4OZUmzLHBgAJ),
coercion_model.richcmp()
should not fall back on comparing by type/id.
This branch implements comparisons for Element
the same way as in Python 3: a TypeError
is raised for uncomparable objects (instead of comparing by id
).
Dependencies: #22297, #22344, #22346, #22369, #22370, #22371, #22372, #22373, #22376, #22382, #24968, #26917, #26931, #26933, #26934, #26935, #26936, #26937, #26938, #26947, #27003, #27009, #27010, #27026, #27027, #27029, #27123, #27241
Depends on #27241
CC: @fchapoton
Component: coercion
Keywords: richcmp
Author: Marc Mezzarobba, Jeroen Demeyer
Branch/Commit: e311ab1
Reviewer: Julian Rüth, Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/22029