Self function

Arnaud Delobelle arnodel at googlemail.com
Wed May 6 03:23:42 EDT 2009


On May 5, 10:20 pm, Aaron Brady <castiro... at gmail.com> wrote:
> def auto( f ):
>     def _inner( *ar, **kw ):
>         return f( _inner, *ar, **kw )
>     return _inner

Quoting myself near the start of this thread:

Here's an idea:
>>> def bindfunc(f):

...     def boundf(*args, **kwargs):
...         return f(boundf, *args, **kwargs)
...     return boundf


--
Arnaud



More information about the Python-list mailing list