[IronPython] Live usage?

2005-12-14 Thread Stute, Detlef ALRT/EEG4
Hi Ryan, I try to integrate IronPython into our test application. This should run on several test units. We want to split our test skripts into several python files, do output to xml files, ... At this time I start integrating the scripting engine into my program. This works fine at the moment.

Re: [IronPython] IronPython IDE

2005-12-14 Thread Bob Arnson
> If you build the IronPython project (something like > C:\Program Files\Visual > Studio 2005 > SDK\2005.12\VisualStudioIntegration\Samples\IronPythonIntegrat > ion\Project\Py > thonProject.sln) in VS 2005 (started from the experimental > hive link in the > vsip menu) it automatically registers

Re: [IronPython] IronPython IDE

2005-12-14 Thread Keith J. Farmer
Actually, you should build all four projects under integration. If you reset the experimental hive, you need to be patient, since it'll take a while. Also, I was bit by a RTM bug -- sometimes you'll see just "project" or just "web site" in the start page's create/open part. You need to use to

Re: [IronPython] IronPython IDE

2005-12-14 Thread Cartwright, Iain
If you build the IronPython project (something like C:\Program Files\Visual Studio 2005 SDK\2005.12\VisualStudioIntegration\Samples\IronPythonIntegration\Project\Py thonProject.sln) in VS 2005 (started from the experimental hive link in the vsip menu) it automatically registers the IronPython Exte

Re: [IronPython] Exec Question

2005-12-14 Thread Martin Maly
The correct behavior is that of Cpython in this case: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> glob = {} >>> loc = {} >>> exec "a=12" in glob, loc >>> loc {'a': 12} Seems that we have

[IronPython] Exec Question

2005-12-14 Thread Tibor Berkovits
The following python code snippet glob = {} loc = {} exec "a=12" in glob, loc behaves differently under IP 0.9.5 vs. IP 0.9.6 with respect to which dictionary the definition of 'a' is inserted into. In IP095 it goes to loc, while in IP096 it goes to glob. Can someone please explain which one is

[IronPython] Get the line number for a PythonException

2005-12-14 Thread Stanislas Pinte
Hello, I am using IronPython as embedded scripting engine. I am invoking python functions defined in a script like that: engine.AddToPath(Path.GetDirectoryName(scriptPath)); engine.Import(moduleName); f = engine.Evaluate(moduleName + "." + functionName) as Function; .. later: .. f.Call(...) --

Re: [IronPython] IronPython IDE

2005-12-14 Thread Martin Smith
The problem appears to be with the passport integration. If you go to the main VSIP site, http://affiliate.vsipmembers.com, it'll make you sign up with a valid passport account and enter a bit more information. Then you'll be able to download the December CTP of the Visual Studio SDK. Once insta

[IronPython] Live usage?

2005-12-14 Thread Ryan Davis
Hello, I'm considering adding some scripting to one of my applications using the IronPython engine, and I before I do, I know the first question I'm going to be asked: is anyone else using IronPython as a scripting language in a live application? Thanks, Ryan __

Re: [IronPython] Stack Traces in IronPython 0.96 do not contain python stack trace

2005-12-14 Thread Martin Maly
When you catch the exception after g.Call(...), do you also examine the exception's CallStack? I tried simpler variation on your code: try { engine.Import("x"); Function f = engine.Evaluate("x.f") as Function; f.Call(); } catch (Exception x) { output.write(x.ToString()); outp

Re: [IronPython] Stack Traces in IronPython 0.96 do not contain python stack trace

2005-12-14 Thread Brian
On 12/14/05, Stanislas Pinte <[EMAIL PROTECTED]> wrote: > It is very important for me to be able to give the user that kind of > feedback...is there a way to do it? Martin Maly recently posted: "The reason you see the 'report an error to MS' dialog is our change in exception handling that I descri

Re: [IronPython] Console and comment line 0.9.6

2005-12-14 Thread Martin Maly
Hello, As for the code changes, the console interactive loop is not perfect yet and we will improve it to handle more common cases. The change to make comment a token is only for the tokenizer in the 'verbatim' mode, which is only when used by the Visual Studio colorizer. Otherwise the tokeniz

[IronPython] Stack Traces in IronPython 0.96 do not contain python stack trace

2005-12-14 Thread Stanislas Pinte
hello, Has anyone an idea of the following: I have a script: > #ScriptingLoopTest python code > > def init_session(settings, fileNamePrefix): > pass > > def handle_message(message): > passmmm and I use IronPython 0.96 as embedded scripting engine. private PythonEngine engine = new Python

[IronPython] Console and comment line 0.9.6

2005-12-14 Thread Stute, Detlef ALRT/EEG4
Hi all, I'm using IronPython 0.9.6 as scripting engine. I redirect the Iconsole to my own ReadLine and so on. In my ReadLine I read a file and transfer it line by line to the scripting engine. It was working with version 0.9.3 To make a long story short: When the file includes a comment line ( li