-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
get rid of some iteritems #33726
Comments
Commit: |
New commits:
|
Branch: u/chapoton/33726 |
comment:2
What do you mean? You only replaced |
comment:3
While we are at it, why not change |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Replying to @kwankyu:
Well, I suspect that this part of the code is never doctested. In python3, dictionaries no longer have an iteritems method. The only thing that still have an iteritems method are sage own's weak dictionaries. We should switch this method's name to items, but not in this ticket. |
Reviewer: Kwankyu Lee |
comment:6
Replying to @fchapoton:
Right.
Okay. |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/chapoton/33726 to |
Changed commit from |
comment:8
This change missed one of the - for t,g in self._t_dict.iteritems():
- for k,c in g.monomial_coefficients(copy=False).iteritems():
+ for t, g in self._t_dict.items():
+ for k, c in g.monomial_coefficients(copy=False).iteritems(): |
comment:9
Replying to Frédéric Chapoton:
I've opened #34488 for this |
Change
iteritems
toitems
in two py files whereiteritems
makes no sense with python3.Also in one pyx file. Note that in pyx files, with python3,
items
is the same asiteritems
.CC: @tscrim
Component: refactoring
Author: Frédéric Chapoton
Branch:
0d580e5
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/33726
The text was updated successfully, but these errors were encountered: