How do I get type methods?

Fuzzyman fuzzyman at gmail.com
Fri May 4 17:17:08 EDT 2007


On May 3, 8:33 pm, yavanna... at yahoo.com wrote:
> Hello!
>
> If I do
>
> import uno
> localContext=uno.getComponentContext()
>

dir(type(localContext))

Perhaps ?

Fuzzyman
http://www.voidspace.org.uk/ironpython/index.shtml


> then localContext is of type <type 'pyuno'>
> I guess it's a new type provided by PyUNO extension.
> localContext.__class__ is None
> Is there any way to list all methods of that new type, via Python C
> API or through interpreter (other then dir(localContext) )?
> What I want is to call localContext's methods like in the tutorial
> example:
>
> x=MyClass()
> MyClass.f(x)
>
> Thank you,
> Dmitri





More information about the Python-list mailing list