Opened 7 years ago

Closed 7 years ago

#20468 closed enhancement (fixed)

changing some classic division to exact division in ascii_art of trees

Reported by: Frédéric Chapoton Owned by:
Priority: major Milestone: sage-7.2
Component: combinatorics Keywords: python3, ascii_art
Cc: Merged in:
Authors: Frédéric Chapoton Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: 7f7a7b5 (Commits, GitHub, GitLab) Commit: 7f7a7b5da4d6e134120bd3f2755519dfcef77b88
Dependencies: Stopgaps:

Status badges

Description (last modified by Frédéric Chapoton)

some problems (about future transition to py3) can be found using

python -Qwarnall $(which sage-runtests) src/sage/combinat/*.py 

let us try to correct a few of them.

see also #18659 and #15995

Change History (7)

comment:1 Changed 7 years ago by Frédéric Chapoton

Branch: u/chapoton/20468
Commit: 1ab50b762be4cad278074d64736ad28ab05e7e02
Keywords: python3 ascii_art added
Status: newneeds_review

New commits:

1ab50b7changing some division into exact division in ascii_art

comment:2 Changed 7 years ago by Travis Scrimshaw

Reviewers: Travis Scrimshaw

Since you're changing it, you might as well do:

-while len(roots):
+while roots:

Once you make those changes, you can set it to a positive review.

comment:3 Changed 7 years ago by git

Commit: 1ab50b762be4cad278074d64736ad28ab05e7e027f7a7b5da4d6e134120bd3f2755519dfcef77b88

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

7f7a7b5trac 20468 reviewer's suggestion

comment:4 Changed 7 years ago by Frédéric Chapoton

Description: modified (diff)
Status: needs_reviewpositive_review

thanks Travis

comment:5 Changed 7 years ago by Frédéric Chapoton

sequel in #20471

comment:6 Changed 7 years ago by Jeroen Demeyer

General suggestion: add from __future__ import division on top of modules which have been fully converted. That way we know for sure that there are no old-style divisions left in that module.

comment:7 Changed 7 years ago by Volker Braun

Branch: u/chapoton/204687f7a7b5da4d6e134120bd3f2755519dfcef77b88
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.