Re: PEP 309 (Partial Function Application) Idea

2005-03-14 Thread Chris Perkins
self.plural = lambda n: int(n != 1) and _maybe_ even: self.plural = int(__ != 1) But wait - on second thought, "__" is a legal identifier now, unlike "...", so we can't have the compiler messing around with expressions like foo(x, __), can we. OK, now I really give up on the whole idea! Chris Perkins -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 309 (Partial Function Application) Idea

2005-03-12 Thread Chris Perkins
>Scott David Daniels wrote: >>>Chris Perkins wrote: >>>>Random idea of the day: How about having syntax support for >>>>currying/partial function application, like this: >>>>func(..., a, b) >>>>func(a, ..., b) >>>>func(a, b, .

PEP 309 (Partial Function Application) Idea

2005-03-11 Thread Chris Perkins
27;m sure there are issues, but I do like the way it looks. The "..." really stands out as saying "something is omitted here". Chris Perkins -- http://mail.python.org/mailman/listinfo/python-list