mike klaas xdihqxzrsgmailcom 2may08 403 pm terry reedy wrote people write somename lambda args expression instead obvious people dare say standard def somenameargs return expression difference result one know code function objects get generic name instead informative repr output tracebacks somename consider disadvantage absence compensating advantages trivial saving 3 chars consider def form proper python style point think least recommended stdlib programming recommendations section pep 8 currently uses named lambdas least urllib2 bad example new python programmers style mavens think im style maven ill put forward dont think bad style importantly statements result sensible changes believe considered good style example consider registercallbacklambda frobnicate7 places callback needs registered registercallbacklambda frobnicate7 registercallback2lambda frobnicate7 dry leads factoring variable straightforward manner callback lambda frobnicate7 registercallbackcallback registercallback2callback another thing consider def pattern possible bound variable dots common pattern replace instances method lambda add monitoring hooks disable certain functionality instget_foo lambda fakefoo replacable one line def without locals detritius assuming good style seems odd instget_foo lambda fakefoo acceptible style get_foo lambda fakefoo isnt also happen think def pattern less clear situations speaks personal taste isnt particularly relevant mike _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 213808 0700 pythondev pep 8 discourage named lambdas