[Python.NET] Could you tell me how to call python from c#?

Barrett, Joey Joey.Barrett at itg.com
Wed Jun 6 02:11:05 CEST 2007


Hi,

 

I also would be very interested in seeing some examples to "call python
from c#" using "Python for .NET".  I have dug around Google and a number
of forums---I can't find anything except the post from below.  I really
hope I'm not missing the obvious somewhere.

 

IronPython is great but my needs require using a few c++ extensions
compiled for CPython (that can't be recompiled).

 

Also thanks in advance,

 

Joey J. Barrett

Investment Technology Group, Inc.

 

 

 

 

Hello, PythonNet!

 
I'm looking for some sample code to call python from C#.
Actually, I'd like to execute python program(let say 'Hello.py') from C#

with parameters.
Actually, I'm a newbie at both of languages. So, could you give sample 
source code? I was looking for some guide or source for several days, 
but I couldn't find it. What I've got so far from googling is 
http://mail.python.org/pipermail/pythondotnet/2003-November/000037.html,

but I can't understand it and old one.
 
Thank you in advance.
Seungweon.

 

 

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
This message is for the named person's use only. This communication is for
informational purposes only and has been obtained from sources believed to
be reliable, but it is not necessarily complete and its accuracy cannot be
guaranteed. It is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation of any
transaction. Moreover, this material should not be construed to contain any
recommendation regarding, or opinion concerning, any security. It may
contain confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. You must not, directly or indirectly, use, disclose, distribute,
print, or copy any part of this message if you are not the intended
recipient.  Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorized to state them to be the views of any such entity.

Securities products and services provided to Canadian investors are offered
by ITG Canada Corp. (member CIPF and IDA), an affiliate of Investment
Technology Group, Inc.

ITG Inc. and/or its affiliates reserves the right to monitor and archive
all electronic communications through its network.

ITG Inc. Member NASD, SIPC
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20070605/ca8d5f58/attachment.html 


More information about the PythonDotNet mailing list