passing dictionaries through COM

Ken Guest kwg at
Fri Jan 11 12:13:37 CET 2002

Does anybody know if it is possible to return a dictionary through COM
to a VB application?
I have tried a simple return {1: "a", 2: "b"} from my python code and
get an error raised "Unexpected Python Error: exceptions.TypeError:
Objects of type 'dictionary' can not be converted to a COM VARIANT' and
was wondering if there is any 'deep magic'/advanced method of
transferring a dictionary of information to a COM based client.

Any help/advice would be greatly appreciated

The duck quacks.

More information about the Python-list mailing list