passing dictionaries through COM

Ken Guest kwg at renre-europe.com
Fri Jan 11 06:13:37 EST 2002


hi,
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