How do I get type methods?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri May 4 01:08:44 EDT 2007


En Fri, 04 May 2007 01:34:20 -0300, <yavannadil at yahoo.com> escribió:

> I'm not against 'dir(MyClass)'; the question is, what should I 'dir()'
> to get methods of 'pyuno' type instance?

Usually instances don't have its own methods, they get them from the  
class. So you actually need dir(MyClass).
Note that dir() might not show all available methods.

-- 
Gabriel Genellina



More information about the Python-list mailing list