[Python-Dev] Serial function call composition syntax foo(x, y) -> bar() -> baz(z)
bokr at oz.net
Sat Feb 18 01:02:15 CET 2006
Is that a record? ;-)
BTW, does python-dev have different expectations re top-posting?
I've seen more here than on c.l.p I think, so I'm wondering what to do.
On Fri, 17 Feb 2006 14:17:41 -0800, "Guido van Rossum" <guido at python.org> wrote:
>Cut to the chase: -1000.
>On 2/17/06, Bengt Richter <bokr at oz.net> wrote:
>> Cut to the chase: how about being able to write
>> baz(bar(foo(x, y)),z)
>> serially as
>> foo(x, y) -> bar() -> baz(z)
>> via the above as sugar for
>> baz.__get__(bar.__get__(foo(x, y))())(z)
>--Guido van Rossum (home page: http://www.python.org/~guido/)
>Python-Dev mailing list
>Python-Dev at python.org
More information about the Python-Dev