Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG] MNT Ignore E731: Use a def instead of lambda #8131

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

Closed
wants to merge 1 commit into from

Conversation

raghavrv
Copy link
Member

@raghavrv raghavrv commented Dec 28, 2016

Our flake8 checker in travis raises error for lambdas for one-liners. I don't think we follow that. Most contributors might prefer lambdas actually...

Ref lambda check_df = lambda x: isinstance(x, InputFeatureType)

@GaelVaroquaux @jnothman @ogrisel Is this fine with you?

We don't follow this and lambdas are quite common in the scientific programming world. Our contributors will more often use lambdas compared to diff for one-liners...
@jnothman
Copy link
Member

jnothman commented Dec 29, 2016 via email

@jnothman
Copy link
Member

jnothman commented Dec 29, 2016 via email

@jnothman
Copy link
Member

jnothman commented Dec 29, 2016 via email

@raghavrv
Copy link
Member Author

Okay thanks for the clarification. Now that we have that preference documented here in this PR, I'll close it... ;)

@raghavrv raghavrv closed this Dec 29, 2016
@GaelVaroquaux
Copy link
Member

GaelVaroquaux commented Dec 29, 2016 via email

@qinhanmin2014 qinhanmin2014 deleted the ignore_lambda_to_diff_errors branch July 12, 2018 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build / CI Easy Well-defined and straightforward way to resolve Waiting for Reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants