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

2014-09-15 Thread Jeremy Herbert
Hi all, I'm currently struggling a little with pywin32, and to me it seems that the default python dir() behaviour is broken. For the record, I am forcing early-binding. To explain, I think some code would be best: class A(object): def __init__(self): self.member = 1 def

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

2014-09-15 Thread Tim Roberts
Jeremy Herbert wrote: I'm currently struggling a little with pywin32, and to me it seems that the default python dir() behaviour is broken. For the record, I am forcing early-binding. Broken is too harsh of a word. What you're seeing here is more or less an impedance mismatch between two very

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

2014-09-15 Thread Jeremy Herbert
Hi Tim, Sorry, I did not intend for my message to be interpreted as overly harsh :) 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_. Thanks, Jeremy Herbert On Mon, Sep 15, 2014 at 7:33 PM, Tim

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

2014-09-15 Thread Tim Roberts
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