callbacks in python

Fredrik Lundh fredrik at pythonware.com
Thu Aug 14 03:37:42 EDT 2008


Bruno Desthuilliers wrote:

> from functools import partial
> 
> callback = partial(some_func, x=1, y)
> callback(z, t=4, u)

 >>> from functools import partial
 >>> callback = partial(some_func, x=1, y)
   File "<stdin>", line 1
SyntaxError: non-keyword arg after keyword arg




More information about the Python-list mailing list