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

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to