|
From: Nitro <ni...@dr...> - 2007-09-04 13:04:43
|
Hello,
when I try to use Python 2.5's functools.partial with pydispatcher it =
fails with
exceptions.ValueError: unknown reciever type <functools.partial object a=
t =
0x0456C900> <type 'functools.partial'>
I use code similar as this one (actually using louie and wrapping this =
code, but essentially it's the same):
def someFunc(firstArg, bla):
print firstArg, bla
import functools
louie.connect( functools.partial('firstArg'), 'myEvent', weak =3D False =
)
louie.send( 'myEvent', None, 'bla')
Is this supposed to work? I guess robustapply would have to access =
partial.func instead of partial itself when it's looking for the im_func=
=
attributes.
-Matthias
|