COM servers from within a Python service (on Win2k)

Duncan Booth duncan at NOSPAMrcp.co.uk
Wed Dec 5 03:57:26 EST 2001


Andrew Bennetts <andrew-pythonlist at puzzling.org> wrote in 
news:mailman.1007522528.18068.python-list at python.org:

> I've searched Google, and haven't found any answers to this...
> 
> Is it possible for a Python service to also be a COM server?  The
> obvious reason to do this would be to control the service via the COM
> interface.
Yes it is possible.

> 
> Can anyone show me how to make this work?
> 
I have emailed you a working example. It is a minimal service which 
contains a COM server.

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list