sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.42k stars 478 forks source link

py3: cmp in continued fractions / Klyachko sheaves / coxeter3 #23366

Closed fchapoton closed 7 years ago

fchapoton commented 7 years ago

as another step towards py3

CC: @tscrim @jdemeyer @jhpalmieri

Component: python3

Author: Frédéric Chapoton

Branch/Commit: d56f4c0

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/23366

fchapoton commented 7 years ago

New commits:

3f8d0f0care for cmp in (coxeter3, Klyachko toric sheaves, continued fractions)
fchapoton commented 7 years ago

Commit: 3f8d0f0

fchapoton commented 7 years ago

Branch: u/chapoton/23366

tscrim commented 7 years ago
comment:3

ElementWrapper implements the _richcmp_ hook, so you do not need the @richcmp_method for CoxeterGroup.Element. Also, I thought @richcmp_method was passed down to subclasses, so I don't think they are needed for the subclasses. Maybe I'm mistaken?

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from 3f8d0f0 to d4baf13

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

d4baf13trac 23366 better use of richcmp_method
fchapoton commented 7 years ago
comment:5

Here is a better version, thanks.

Indeed, inheriting seems to be ok.

fchapoton commented 7 years ago
comment:6

failing doctests ...

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Changed commit from d4baf13 to d56f4c0

7ed8c4ca-6d56-4ae9-953a-41e42b4ed313 commented 7 years ago

Branch pushed to git repo; I updated commit sha1. New commits:

ae49526Merge branch 'u/chapoton/23366' in 8.0.rc1
d56f4c0trac 23366 fixing richcmp for continued fractions
fchapoton commented 7 years ago
comment:9

bot is morally green, please review

tscrim commented 7 years ago

Reviewer: Travis Scrimshaw

tscrim commented 7 years ago
comment:10

LGTM.

vbraun commented 7 years ago

Changed branch from u/chapoton/23366 to d56f4c0