things I wish python could do

Daniel 'Dang' Griffith noemail at noemail4u.com
Thu May 13 14:27:40 EDT 2004


On Thu, 13 May 2004 12:35:48 -0400, "Terry Reedy" <tjreedy at udel.edu>
wrote:

>
>"Jacek Generowicz" <jacek.generowicz at cern.ch> wrote in message
>news:tyfk6zgpx6w.fsf at pcepsft001.cern.ch...
>> Ryan Paul <segphault at sbcglobal.net> writes:
>
>> Yes, I find the whole statement expression dichotomy one huge PITA.
>
....
>> > 4.  assignments cant be made inside of anonymous functions.
>>
>> Actually, there's very little you can do in anonymous functions, given
>> that you are restricted to a _single expression_.
>
>Lambda expressions in Python are strictly an abbreviation for functions
>with a trivial body ('return expression'), nothing more.  Anonymity is a
>wart, not a feature.  The keyword is, to me, a mistake because of the false
>expectations it stimulates.

Maybe lambda should be renamed as lameda?  ;-)
    --dang "$.02 too much" dude



More information about the Python-list mailing list