Python COM object: attribute value typing
Steve Holden
sholden at holdenweb.com
Wed Jan 23 17:37:39 EST 2002
Quite an odd one, this. I'm creating a COM object in Python and accessing it
from VBscript. I set a value true/false with the following statement in the
COM object:
self.AVS_aok = (r in "23")
AVS_aok is to be found in both _public_attrs_ and _readonly_attrs_, if it
matters. When I access this attribute from VBscript it comes back with
TypeName "Boolean", and values True/False, where I would have expected a
simple 1 or 0.
I would not have though that Python retained anything other than the 0 or 1
result. How can this be?
regards
Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Python Web Programming: http://pydish.holdenweb.com/pwp/
More information about the Python-list
mailing list