Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #22029: Element richcmp: never use id()
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 URL: https://trac.sagemath.org/22029 Reported by: mmezzarobba Ticket author(s): Marc Mezzarobba, Jeroen Demeyer Reviewer(s): Julian Rüth, Marc Mezzarobba
- Loading branch information