サクサク読めて、アプリ限定の機能も多数!
“ 96 down vote accepted The recommendation in PEP-8 you are running into is: Always use a def statement instead of an assignment statement that binds a lambda expression directly to a name. Yes: def f(x): return 2*x No: f = lambda x: 2*x ”
kent-where-the-light-is のブックマーク 2017/09/03 14:13
E731 do not assign a lambda expression, use a def“ 96 down vote accepted The recommendation in PEP-8 you are running into is: Always use a def statement instead of an assignment statement that binds a lambda expression directly to a name. Yes: def f(x): return 2*x No: f = lambda x: 2*x ”2017/09/03 14:13
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2015/03/20
I get this pep8 warning whenever I use lambda expressions. Are lambda expressions not recommended? If not why?
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
“ 96 down vote accepted The recommendation in PEP-8 you are running into is: Always use a def statement instead of an assignment statement that binds a lambda expression directly to a name. Yes: def f(x): return 2*x No: f = lambda x: 2*x ”
このブックマークにはスターがありません。
最初のスターをつけてみよう!