[Twisted-Python] **kwargs with PB

Brian Warner warner at lothar.com
Fri Mar 24 03:36:10 EST 2006

"Don Smith" <donwsmith at gmail.com> writes:

>    I'm experimenting with PB because I want to pass keyword arguments to
>    my remote methods, and I cannot do that with XML-RPC. But, I can't
>    seem to do it with PB either. I was wondering if anyone could confirm
>    or deny that **kwargs work with PB remote objects.

Hmm, I was about to say that no, they don't work, but in looking at the code
it appears that yes, they ought to work just fine. I haven't run a test to
verify this, though. What kind of error message are you seeing?


PS: fyi, newpb is all-kwargs, all the time. I think I put in code to handle
positional args too, but only if you declare the method signature that will
be used on the far end. If not, then you are restricted to using only keyword
args, and positional args will cause an exception.

More information about the Twisted-Python mailing list