how to call python code from C#

just starting just.starting at gmail.com
Tue Jan 25 03:38:05 EST 2005


Thanks for all your kind information. I haven't used COM objects so
far.I think now I have to learn it.Anyway thanks a lot again.
paritosh.


On Mon, 24 Jan 2005 12:43:50 -0700, Dave Brueck
<dave at pythonapocrypha.com> wrote:
> Peter Hansen wrote:
> > paritosh mahana wrote:
> >
> >> How can I call python code from my C#  code.
> [snip]
> > You could use ctypes or the pywin32 package to provide your
> > Python code with an ActiveX interface.  Then you could just
> > use it via COM, like any other COM object.  Lots of references
> > available via Google if you want to learn more about this
> > approach...
> 
> Lemme add my two cents and say that this approach works well.
> 
> We have a component that uses ctypes and runs as a COM local server (its own
> .exe) and we currently use it both from Internet Explorer and from a C#
> application. COM can be hairy initially, but if you have any experience with COM
> then this approach is pretty straightforward.
> 
> -Dave
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list