-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] Use immutable default arguments throughtout repo #4409
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
Conversation
Thanks LGTM. +1 if travis is green. |
If you squash them they will be easier to cherry pick. |
c2934f1
to
956f88a
Compare
Now the four commits have been squashed into one. |
thanks :) |
|
|
@carlio again, not sure what is happening here :-/ |
Travis failed. |
Travis shows that problems are in my modified
I think I can't simply modify init that way. Thanks, amueller! |
Don't mutate the default argument in |
a0afbe4
to
bf41ad5
Compare
|
|
master was broken, sorry, my fault :-/ |
I just restarted, should be fine now. |
Also, don't worry much about merge conflicts. We have 200 open PRs. It will be impossible not to conflict with any ;) |
Do I need to add some tests/documentation? Maybe I can help on #4379. |
#4379 will be mergable once everything is fixed. |
I don't think additional tests are needed. It looks good to me. |
OK. I'll now squash the commits into one for easier cherry-picking and start to work on other issues. |
Replace mutable default arguments in examples Replace mutable default arguments in sklearn/manifold/t_sne.py Replace mutable default arguments in sklearn/metrics/pairwise.py
bf41ad5
to
2638fe5
Compare
thanks :) |
|
LGTM. Thanks @bryandeng! |
[MRG + 1] Use immutable default arguments throughtout repo
Hi developers:
I've now fixed the issue that some functions are using mutable default arguments, as shown in https://landscape.io/github/scikit-learn/scikit-learn/76/messages/error
(not including the one in
ridge.py
which has been fixed by DonBeo).