“ 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-iskent-where-the-light-is のブックマーク 2017/09/03 14:13

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

E731 do not assign a lambda expression, use a def

    I get this pep8 warning whenever I use lambda expressions. Are lambda expressions not recommended? If not why?

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう