Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.052 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'subject:Python': 0.06; 'lawrence': 0.09; 'python': 0.11; 'from:addr:xs4all.nl': 0.16; 'non-trivial': 0.16; 'received:194.109': 0.16; 'received:194.109.24': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'code,': 0.22; '"you': 0.24; 'tend': 0.24; 'define': 0.26; 'header:In- Reply-To:1': 0.27; 'function': 0.29; '25,': 0.31; 'faster,': 0.31; 'trivial': 0.31; 'this.': 0.32; 'run': 0.32; "can't": 0.35; 'agree': 0.35; 'beyond': 0.35; 'charset:us-ascii': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'most': 0.60; 'header:Message-Id:1': 0.63; 'received:194': 0.64; 'benefit': 0.68; 'computers': 0.72; 'subject:Practices': 0.84; 'virtue': 0.84 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: Python Worst Practices From: Michiel Overtoom In-Reply-To: Date: Wed, 25 Feb 2015 21:58:48 +0100 Content-Transfer-Encoding: quoted-printable References: To: Python X-Mailer: Apple Mail (2.1085) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424897997 news.xs4all.nl 2867 [2001:888:2000:d::a6]:36269 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86440 On Feb 25, 2015, at 21:45, Mark Lawrence wrote: > http://www.slideshare.net/pydanny/python-worst-practices I agree with you that Python lambdas have little use beyond the most = trivial use cases. For the non-trivial cases, I like to define a named function which does = the job. And also provides documentation, just by virtue of being named = (and having a docstring). I also tend to do this in JavaScript code, which also can benefit from = this. Greetings, --=20 "You can't actually make computers run faster, you can only make them do = less." - RiderOfGiraffes