Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py3: get rid of iterkeys #21266

Closed
fchapoton opened this issue Aug 17, 2016 · 16 comments
Closed

py3: get rid of iterkeys #21266

fchapoton opened this issue Aug 17, 2016 · 16 comments

Comments

@fchapoton
Copy link
Contributor

as a step towards py3, do not use iterkeys

(there remains 3 more subtle uses of iterkeys)

I have also taken the opprtunity to remove deprecated code in src/sage/combinat/finite_state_machine.py

CC: @cheuberg

Component: python3

Author: Frédéric Chapoton

Branch: 4a3b20f

Reviewer: Jori Mäntysalo

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

@fchapoton fchapoton added this to the sage-7.4 milestone Aug 17, 2016
@fchapoton

This comment has been minimized.

@fchapoton
Copy link
Contributor Author

Commit: 12a7c62

@fchapoton
Copy link
Contributor Author

New commits:

12a7c62py3: getting rid of iterkeys()

@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/21266

@fchapoton

This comment has been minimized.

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Aug 18, 2016

comment:3

I can check this.

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Aug 18, 2016

Reviewer: Jori Mäntysalo

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Aug 18, 2016

comment:4

Otherwise there are no problems, but I got an doctest error from _color_by_label() of generic_graph.py.

I guess that happens because of change at src/sage/graphs/base/c_graph.pyx, but of course the real problem is getting a list when we mathematically have a set. I suggest you change docstring to have some in statements (see for example test block of is_dismantlable() on lattices.py) or use sorted(). It is enought for a function starting with _.

(And I think that this is a real problem for example blocks on some functions.)

@jm58660 jm58660 mannequin added s: needs work and removed s: needs review labels Aug 18, 2016
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 18, 2016

Changed commit from 12a7c62 to 4a3b20f

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 18, 2016

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

3c85228Merge branch 'u/chapoton/21266' in 7.4.b1
4a3b20ftrac 21266 trying to fix doctests in generic_graph color_by_label

@fchapoton
Copy link
Contributor Author

comment:6

Does this fix the problem ?

@fchapoton
Copy link
Contributor Author

comment:7

seems ok now

@jm58660
Copy link
Mannequin

jm58660 mannequin commented Aug 19, 2016

comment:8

Replying to @fchapoton:

Does this fix the problem ?

Yes.

@vbraun
Copy link
Member

vbraun commented Aug 21, 2016

Changed branch from u/chapoton/21266 to 4a3b20f

@dkrenn
Copy link
Contributor

dkrenn commented Sep 2, 2016

comment:10

Thanks for the clean-up in finite_state_machines. :)

@dkrenn
Copy link
Contributor

dkrenn commented Sep 2, 2016

Changed commit from 4a3b20f to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants