Opened 7 years ago

Closed 5 years ago

## #19170 closed enhancement (wontfix)

# Comparison modifications in algebras/

Reported by: | Vincent Delecroix | Owned by: | |
---|---|---|---|

Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |

Component: | python3 | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | Frédéric Chapoton | |

Report Upstream: | N/A | Work issues: | |

Branch: | u/vdelecroix/19170 (Commits, GitHub, GitLab) | Commit: | 861cce24b8301821e3291ae53b22dccc094d9ebc |

Dependencies: | Stopgaps: |

### Description

Modify some comparisons in `sage.algebras`

to use the `_cmp_`

and `_richcmp_`

involving the coercion framework.

This ticket was initially part of #18305.

### Change History (11)

### comment:1 Changed 7 years ago by

Branch: | → u/vdelecroix/19170 |
---|---|

Commit: | → 861cce24b8301821e3291ae53b22dccc094d9ebc |

Dependencies: | → #18305 |

Status: | new → needs_review |

### comment:4 Changed 5 years ago by

Component: | coercion → python3 |
---|---|

Milestone: | sage-6.10 → sage-8.1 |

### comment:5 Changed 5 years ago by

Dependencies: | #18305 |
---|

### comment:7 Changed 5 years ago by

Milestone: | sage-8.1 → sage-duplicate/invalid/wontfix |
---|

### comment:8 Changed 5 years ago by

Status: | needs_info → positive_review |
---|

Ok, let us consider that this one also is way outdated.

### comment:9 Changed 5 years ago by

Authors: | Vincent Delecroix |
---|---|

Reviewers: | → Frédéric Chapoton |

There is not a `def __cmp__`

in `sage/algebras/`

from grepping, so this has been taken care of.

### comment:10 Changed 5 years ago by

Yes, I wonder by who. But there remains to handle comparison of "ideals" in rings. I will work on that once the current py3 tickets have been included in sage.

### comment:11 Changed 5 years ago by

Resolution: | → wontfix |
---|---|

Status: | positive_review → closed |

**Note:**See TracTickets for help on using tickets.

New commits:

`Trac 18305: py_rich_to_bool(_sgn) and operators`

`Trac 18305: _richcmp_ for indexed monoids and groups`

`Trac 18305: _richcmp_ for Newton polygons`

`Trac 18305: comments about Python comparisons`

`Trac 18305: rephrased sentence in doc`

`Trac 19170: use _cmp_ for ideals of finite dimensional algebras`

`Trac 19170: _richcmp_ for `finite dimensional algebra elements`