From: CTO <debat...@gmail.com>
Date: Wed, 13 May 2009 12:18:37 -0700 (PDT)
Local: Wed, May 13 2009 3:18 pm
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...
On May 12, 3:56 pm, Pascal Chambon <chambon.pas...@wanadoo.fr> wrote:
> Well, since adding new keywords or operators is very sensitive, and the I'm not a fan. If you thought not reevaluating function expressions > existing ones are rather exhausted, it won't be handy to propose a new > syntax... > One last idea I might have : what about something like > * def myfunc(a, b, c = yield []): > I'm not expert in english, but I'd say the following "equivalents" of > Of course the behaviour of this yield is not so close from the one we > How do you people feel about this ? was confusing for newbies, wait until you see what making up a new kind of yield will do for them. Why not just push for some decorators that do this to be included in >>> @Runtime ... def f(x=a**2+2b+c): ... return x ... >>> a = 1 8 >>> b = 2 >>> c = 3 >>> f() This seems much more intuitive and useful to me than adding new Geremy Condra 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.
| ||||||||||||||