Re: [IronPython] result of partial is not callable

2010-03-15 Thread Dino Viehland
g this. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Ronnie Maor Sent: Saturday, March 13, 2010 11:08 AM To: Discussion of IronPython Subject: [IronPython] result of partial is not callable I got this problem with 2.6.0. Haven't tried on 2.6.1 from System.Thr

[IronPython] result of partial is not callable

2010-03-13 Thread Ronnie Maor
I got this problem with 2.6.0. Haven't tried on 2.6.1 from System.Threading import ThreadStart from functools import partial def foo(x): pass ThreadStart(partial(foo,3)) # TypeError: Object is not callable def mypartial(f,*bind_a,**bind_kw): def wrapped(*a,**kw): all_kw = bind_kw.cop