text_combined: alex martelli typcyyjgmailcom sun may 4 2008 331 raymond hettinger wrote kg groupbyiterable keylambda r r0lower r5lower lastname_firstname lambda r r0lower r5lower k g groupbyiterable keylastname_firstname transformation adds clarity going creating separate defstatement outside current function would move relevant code farther away impair readability would totally silly uncalled ever would placed outside current function strawman def last_firstr return r0lower r5lower k g groupbyiterable keylast_first putting def right lambda course alex _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom fri 08 aug 2008 032610 0700 pythondev pep 8 discourage named lambdas