Re: [IronPython] Executing a python source from C#

2005-05-01 Thread Fabien Meghazi
> You want to use IronPython.Hosting.PythonEngine. Here's a simple > example program. We're very interested in feedback on experiences with > hosting IronPython from other .NET languages as that's an important > scenario, but not one that I have much personal experience with. > > Does this give

RE: [IronPython] Executing a python source from C#

2005-05-01 Thread Keith J. Farmer
Title: RE: [IronPython] Executing a python source from C# In fact…   http://blogs.msdn.com/johngossman/archive/2005/04/30/413735.aspx http://blogs.msdn.com/johngossman/archive/2005/04/30/413743.aspx     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Keith J. Farmer
n of IronPython' Subject: RE: [IronPython] Executing a python source from C# What I'd really like is the ability to create a .dll that we reference in other .NET apps, just as now we can write a class library in C# and use it in a VB.NET web application. I have zero clue of the complexit

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Ryan Davis
Ryan _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J. Farmer Sent: Friday, April 29, 2005 2:27 PM To: Discussion of IronPython Subject: RE: [IronPython] Executing a python source from C# I think having a standard interface for creating consoles would be a grea

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Keith J. Farmer
ggery. From: [EMAIL PROTECTED] on behalf of Jim Hugunin Sent: Fri 4/29/2005 10:46 AM To: Discussion of IronPython Subject: RE: [IronPython] Executing a python source from C# That will generate a SyntaxError just as if you passed a partial block to exec. If you're interested in experime

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Jim Hugunin
April 29, 2005 10:35 AM To: Discussion of IronPython Subject: RE: [IronPython] Executing a python source from C# What happens if we send in a partial block, as might happen when creating an embeddable console? string stmt = "for i in range(6):"; engine.Execute(stmt); Or is it expected

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Keith J. Farmer
What happens if we send in a partial block, as might happen when creating an embeddable console? string stmt = "for i in range(6):"; engine.Execute(stmt); Or is it expected that we ensure that such things don't happen? <>___

RE: [IronPython] Executing a python source from C#

2005-04-29 Thread Jim Hugunin
Fabien Meghazi wrote: > How can I execute some python code that I have in a String() from a C# > .NET > program or an aspx application ? > I also would like to get back the stdout that the python code produced. You want to use IronPython.Hosting.PythonEngine. Here's a simple example program. We'