How do I get type methods?

yavannadil at yahoo.com yavannadil at yahoo.com
Fri May 4 00:34:20 EDT 2007


On May 4, 3:21 am, Stargaming <stargam... at gmail.com> wrote:
> What's wrong about `dir()`?
> x = MyClass()
> x.f()

I want to cashe pointers to Python functions in a non-Python app.
'dir()' requires an argument, and I want to get function pointers
before I have any variable of given type or class.
That's why 'MyClass.f(x)'
I'm not against 'dir(MyClass)'; the question is, what should I 'dir()'
to get methods of 'pyuno' type instance?

Sincerely yours,
Dmitri




More information about the Python-list mailing list