I have encountered a bug (or a feature?) yesterday. One of my exposed
functions is returning a dictionary, which I pass as a to a local function as
**kwargs. That however causes an error:
Traceback (most recent call last):
File "client.py", line 92, in <module>
rparser.add_option(*args, **kwargs)
TypeError: add_option() argument after ** must be a dictionary
The kwargs variable _is_ a dictionary, or it definitely behaves like one
everywhere else except here. It just can't be upacked with **. I have
temporarily worked around this by pickling the dict on the server and
unpickling on the client, but I think that should not be necessary.
Am I missing something?
Petr
--
My GNUPG key is at http://petr.madnetwork.org/home/contact/pubkey.asc
Key fingerprint = 0F04 503F EF79 2B8D B63C 00B4 AD2F 0594 FAA5 0053