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
>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, .
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