python / COM question

Mark Hammond mhammond at skippinet.com.au
Sat Mar 25 03:31:57 EST 2000


The interface used must be IDispatch.

If this is true, then your example is simply written as:

y, m, d = ob.GetDate()

"David A. Rogers" <darogers at xnet.com> wrote in message
news:slrn8dntd2.31.darogers at drogers.spss.com...
> I'm learning COM and want to use python to test the objects I'm
creating.  I
> immediately ran into a problem.
>
> I have an interface with a function like so:
>
> STDMETHOD(GetDate)(int* year, int* month, int* day);
>
> How do I call this from python when all python functions are pass by
value?
>
> Thanks for any help,
> dar
>





More information about the Python-list mailing list