[Tutor] Python dir(handle) function acts weird

Alan Gauld alan.gauld at btinternet.com
Sun Apr 5 23:36:13 CEST 2015


On 05/04/15 14:39, Solomon Vimal wrote:
> Hi,
> I have two versions of the same software S4.1 and S5, say - they are
> treated as COM handles.
> When I use methodsview in MATLAB to see the list of methods in both, I get
> more or less the same function list, but in Python, when I use dir(s4.1) I
> get the identical list to MATLAB methodsview, but dir(s5) is a subset of
> the list. This is weird behavior I thought.
>
> Does anyone know what is wrong here? Please let me know soon.


Sorry I can't help, but its not really a Python question so much
as a Windows interface issue.

You don't say how you are accessing the COM objects but ctypes
and PyWin32 are both addressed by the Python windows mailing list.
I suggest you might get a more comprehensive reply there.

HTH
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list