-
Notifications
You must be signed in to change notification settings - Fork 283
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
Python 3 builtins via six #1699
Conversation
This is a really, really, really, really long long_name that must be clipped... x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious....
If tests pass 👍. Please keep 3c9fc9f as a base commit, putting subsequent work on top of that. |
OK, tests pass, but there might be one |
3c9fc9f
to
41deaa9
Compare
Ah, I just missed the |
Seems problematic... |
In some cases, switch to np.arange where it's clearer.
In most cases, no other changes were necessary since the result was used in a for loop.
Again, mostly unchanged except for the import.
Modernize seems to want to turn most filter calls into list comprehensions.
41deaa9
to
77335a5
Compare
Oops, I shouldn't do this so late at night... |
Replace the builtins that are different on Python 3 using
six
. This only includes changes in files where these functions are used. I'll open a second PR adding these new builtins to the remaining files later.