[python-win32] Why doesn't dir() list COM object properties, only methods?

Tim Roberts timr at probo.com
Mon Sep 15 21:46:51 CEST 2014


Jeremy Herbert wrote:
> Is there any way to introspect the properties of the objects
> at runtime using python? They are present in the makepy file under
> _prop_map_get_.

Well, clearly some combination of _prop_map_get and _prop_map_put will
give you this information.

If Mark Hammond is listening in, he's the real guru in this area, and
may know of a more "blessed" way of getting that info.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list