From: Bruce Leban <br...@leapyear.org>
Date: Wed, 13 May 2009 15:33:48 -0700
Local: Wed, May 13 2009 6:33 pm
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...
Sure you can do it with a decorator. Although you might want one default to have this behavior and one not to. And putting the * right next to the lambda makes this a bit more explicit to my eye. --- Bruce >> def myfunc(a, b, c = *lambda: expression):
>> The use of the lambda keyword here makes the scope of any variables in
>Why not
>@calldefaults
>which should be possible without introducing new syntax.
>Georg
>_______________________________________________
_______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||