How do I get type methods?
Stargaming
stargaming at gmail.com
Thu May 3 19:21:14 EDT 2007
yavannadil at yahoo.com schrieb:
> Hello!
>
> If I do
>
> import uno
> localContext=uno.getComponentContext()
>
> 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's wrong about `dir()`?
> What I want is to call localContext's methods like in the tutorial
> example:
>
> x=MyClass()
> MyClass.f(x)
I'd prefer::
x = MyClass()
x.f()
>
> Thank you,
> Dmitri
>
More information about the Python-list
mailing list