[Python-Dev] Re: anonymous blocks
Fredrik Lundh
fredrik at pythonware.com
Tue Apr 19 21:28:31 CEST 2005
Brian Sabbey wrote:
> In short, if doFoo is defined like:
>
> def doFoo(func1, func2):
> pass
>
> You would be able to call it like:
>
> doFoo(**):
> def func1(a, b):
> return a + b
> def func2(c, d):
> return c + d
>
> That is, a suite can be used to define keyword arguments.
umm. isn't that just an incredibly obscure way to write
def func1(a, b):
return a + b
def func2(c, d):
return c + d
doFoo(func1, func2)
but with more indentation?
</F>
More information about the Python-Dev
mailing list