Re: [IronPython] The slow part of IronPython

2008-06-24 Thread Dino Viehland
Well IsolatedStorage probably isn't good enough. The problem is we actually save a real .NET assembly to disk and do so using reflection - which is the only way this offers any benefits - the slow part is generally compilation. So Reflection.Emit would have to support IsolatedStorage for this

Re: [IronPython] events in PowerPoint

2008-06-24 Thread Curt Hagenlocher
There's a reference for the TextRange object at http://msdn.microsoft.com/en-us/library/bb251500.aspx. It doesn't look like it supports any events. From what I can tell, all the events for PowerPoint are defined on the Application object: http://msdn.microsoft.com/en-us/library/bb251405.aspx. Pe

Re: [IronPython] The slow part of IronPython

2008-06-24 Thread Dan Eloff
> There's a couple of plans a foot. We have been working on a pre-compilation > feature like .pyc for IronPython 2.0 It's actually in Beta 3 but > unfortunately it doesn't quite work yet which is the reason we haven't said > anything. It will be there (and working!) in beta 4. Wow, looking f

Re: [IronPython] The slow part of IronPython

2008-06-24 Thread Dino Viehland
There's a couple of plans a foot. We have been working on a pre-compilation feature like .pyc for IronPython 2.0 It's actually in Beta 3 but unfortunately it doesn't quite work yet which is the reason we haven't said anything. It will be there (and working!) in beta 4. That's the short term

[IronPython] The slow part of IronPython

2008-06-24 Thread Dan Eloff
In my experience IronPython 2 is fast, I find it to be 3x CPython for some common tasks like serialization. But one area where it still lags way behind is module importing. I've noticed module importing to be an order of magnitude, over 20x, slower in most cases. I've got to think that if it's so

[IronPython] events in PowerPoint

2008-06-24 Thread Julien Sylvestre
Hello, I'm new at Ironpython, I've been looking at a way to interact dynamically with PowerPoint. I got some simple code to work to access the text in a box which is selected in PowerPoint: import clr from System.Runtime.InteropServices import Marshal clr.AddReference("Microsoft.Office.Int

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Tim Riley
What's wrong with good old SharpDevelop? If you grab a recent build from the build server it comes with IronPython 1.1, C#, VB.NET, Boo and F# support out of the box. I have been using this for all my .NET development needs. I'm not 100% certain if you can use the .NET debugger with IronPython, and

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Foord
Michael Stephens wrote: My main reason for using Irony Python is that break points will get hit. Do these other IDE's support break points. We are using the embedded PythonEngine class. I found that if you launched our application from VS it would attach the debugger and actually debug our

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Jimmy Schementi
That's really the only "IronPython debugging" solution, unless there's some other IDE that supports .NET debugging (MonoDevelop?). ~js On 6/24/08 3:22 PM, "Michael Stephens" <[EMAIL PROTECTED]> wrote: My main reason for using Irony Python is that break points will get hit. Do these other IDE

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Stephens
My main reason for using Irony Python is that break points will get hit. Do these other IDE's support break points. We are using the embedded PythonEngine class. I found that if you launched our application from VS it would attach the debugger and actually debug our python code even though its h

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Foord
Michael Stephens wrote: It looks like the *only* way intellisense will pickup is if everything is in one file. A moderate workaround except for the lack of class navigator+function navigator You are likely to find the intellisense in Python IDEs like Wing and Komodo much better. They don't h

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Stephens
It looks like the *only* way intellisense will pickup is if everything is in one file. A moderate workaround except for the lack of class navigator+function navigator Michael Stephens Electrical Engineering Graduate Student University of Wyoming [EMAIL PROTECTED] or [EMAIL PROTECTED] On Tue, Ju

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Foord
Michael Stephens wrote: I should be able to just say dbg("test") should present intellisense at least for what dbg takes as an argument. "import" in Python is not the same as the C# using directive. If you do the following: import RT Then you can only access members of the RT module us

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Michael Stephens
I should be able to just say dbg("test") should present intellisense at least for what dbg takes as an argument. Michael Stephens Electrical Engineering Graduate Student University of Wyoming [EMAIL PROTECTED] or [EMAIL PROTECTED] On Tue, Jun 24, 2008 at 3:49 PM, Curt Hagenlocher <[EMAIL PROTE

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Curt Hagenlocher
I don't understand from your description what you expect to see in "Problem 2". On Tue, Jun 24, 2008 at 2:35 PM, Michael Stephens <[EMAIL PROTECTED]> wrote: > I have two instances where I can't get intellisense to work. Is it > something I am doing or something wrong with Python Studio. I have

Re: [IronPython] DLR documentation

2008-06-24 Thread Shri Borde
Take a look at http://blogs.msdn.com/ironpython/archive/2008/03/16/dlr-resources.aspx as well for a list of useful links. Thanks, Shri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Tuesday, June 24, 2008 7:31 AM To: Discussion of IronPython Subject: Re: [

Re: [IronPython] DLR documentation

2008-06-24 Thread Curt Hagenlocher
The DLR is pretty sparsely documented today. Some of the available resources are the hosting spec: http://compilerlab.members.winisp.net/dlr-spec-hosting.pdf And some blogs that talk about implementing languages on the DLR: http://blogs.msdn.com/mmaly/ http://www.dotnetguru.org/us/dlrus/DLR2.htm

Re: [IronPython] NameError: locals() is not defined?

2008-06-24 Thread Curt Hagenlocher
Despite "locals" being involved, 16884 is not a related issue. The problem in 16884 is with the delegate that's created for function a and the way that it's bound to the context in which the function was declared. And alas, 16884 is not fixed in beta 3. On Tue, Jun 24, 2008 at 12:41 AM, Jonatha

Re: [IronPython] NameError: locals() is not defined?

2008-06-24 Thread Jonathan Slenders
Does this mean that issue 16884 will be fixed as well in beta 3? 2008/6/24 Dino Viehland <[EMAIL PROTECTED]>: > It seems to be fixed in beta 3. It's probably a bug in the interpreter as > writing the snippet out and executing w/ execfile, which doesn't run under > the interpreter, works in beta