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 more useless .keys in combinat #21379
Comments
New commits:
|
Branch: u/chapoton/21379 |
Commit: |
comment:2
Two stupid things. You made a PEP8 change which made me notice that while-we-are-at-it^(TM), could you make this change: - if len(positions) == 0:
+ if not positions: Also, in |
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
done. And thank you again for taking time to do so many reviews. |
comment:6
It's nothing compared to what you've been doing. |
comment:7
See patchbot |
comment:9
ok, I have corrected the problem. |
Changed branch from u/chapoton/21379 to |
sequel of #21296 and #21304
with an eye towards python3 compatibility
when iterating over a dict, one does not need to call .keys()
and when asking for the list of keys, it is better to call list(d) for compatibility with py3
Removing .keys() when possible is performed in some files in combinat folder
Component: combinatorics
Author: Frédéric Chapoton
Branch/Commit:
8021e24
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/21379
The text was updated successfully, but these errors were encountered: