kwargs to COM

Ulf Engstrøm ulf.engstrom at b2b-link.com
Wed Mar 29 04:43:32 EST 2000


Hello :)
I just built a little tool which I intend to use as a COM-server. It all
works except for the fact that I can't use keyword arguments.
When I call it as
str(server.funct('hello'))

I'll get the correct return, but if I do:
str(server.funct(word='hello')) I'll get an error:
TypeError: unexpected keyword argument: word
(And yes, I use the right keyword argument, word is there)

How do I fix this? Since it's a type-error, is this the com-unicode thingy
creating this error? Is there a way to solve it before unicode-support in
1.6?
Regards
Ulf






More information about the Python-list mailing list