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

Skip to content

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

Closed
raghavrv wants to merge 1 commit into
masterfrom
ignore_lambda_to_diff_errors
Closed

[MRG] MNT Ignore E731: Use a def instead of lambda#8131
raghavrv wants to merge 1 commit into
masterfrom
ignore_lambda_to_diff_errors

Conversation

@raghavrv

@raghavrv raghavrv commented Dec 28, 2016

Copy link
Copy Markdown
Member

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

jnothman commented Dec 29, 2016 via email

Copy link
Copy Markdown
Member

@jnothman

jnothman commented Dec 29, 2016 via email

Copy link
Copy Markdown
Member

@jnothman

jnothman commented Dec 29, 2016 via email

Copy link
Copy Markdown
Member

@raghavrv

Copy link
Copy Markdown
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

GaelVaroquaux commented Dec 29, 2016 via email

Copy link
Copy Markdown
Member

@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