On 6/25/06, Ka-Ping Yee <[EMAIL PROTECTED]> wrote:
> On Sun, 25 Jun 2006, Guido van Rossum wrote:
> > What do you think of Nick C's 'once'?
>
> It's a bit closer to the right meaning... but what about:
>
> def f(x):
> def g(y):
> return y + once x
> return g
>
> Does
On Sun, 25 Jun 2006, Guido van Rossum wrote:
> What do you think of Nick C's 'once'?
It's a bit closer to the right meaning... but what about:
def f(x):
def g(y):
return y + once x
return g
Does "once" mean not really once here, but "once for each new function
obj
On 6/25/06, Ka-Ping Yee <[EMAIL PROTECTED]> wrote:
> On Mon, 26 Jun 2006, Georg Brandl wrote:
> > Raymond Hettinger wrote:
> > >five = 5
> > >eight = [8]
> > >def f(x, six=6):
> > > seven = 7
> > > a = static(five + 4)# this is legal
> > > b = static(s
On Mon, 26 Jun 2006, Georg Brandl wrote:
> Raymond Hettinger wrote:
> >five = 5
> >eight = [8]
> >def f(x, six=6):
> > seven = 7
> > a = static(five + 4)# this is legal
> > b = static(six + 4) # this is illegal
> > c = static(seven + 4)