Re: [IronPython] PythonEngine.SetVariable not in 1.0 RC1

2006-07-27 Thread Mark Rees
Yes the hosting api has changed. It was documented in the beta9 release announcement: http://lists.ironpython.com/pipermail/users-ironpython.com/2006-July/002808.html But to paraphrase: One of the most significant changes is the final updates to the hosting API. The hosting APIs have removed t

[IronPython] PythonEngine.SetVariable not in 1.0 RC1

2006-07-27 Thread Jean-Michel.Perraud
Hi, I am looking at RC1 and noticed that the PythonEngine.SetVariable method is not present anymore. Has is been deprecated and if so what is the new equivalent to expose .NET objects as variables via a hosted engine? The last version I used to compile against was Beta6. Cheers, J-M _

Re: [IronPython] Hosting question

2006-07-27 Thread Ryan Dawson
Hmm, I suspect this has something to do with your handling of the stream. Below is a little pure IronPython snippet that I'm using to test. If you'd like to post your code for PythonOutputStream I'd be happy to take a look. Hope this helps... from IronPython.Hosting import PythonEngine from S

Re: [IronPython] Hosting question

2006-07-27 Thread Slide
On 7/27/06, Ryan Dawson <[EMAIL PROTECTED]> wrote: > Right, the Evaluate* methods are just for expressions. > > Locally, I'm not seeing extra new lines being appended to the end of output. > That's not to say we don't have a bug here, we might. Can you provide some > more information? > > This

Re: [IronPython] Hosting question

2006-07-27 Thread Ryan Dawson
Right, the Evaluate* methods are just for expressions. Locally, I'm not seeing extra new lines being appended to the end of output. That's not to say we don't have a bug here, we might. Can you provide some more information? This happens on a simple "print 3"? We should be writing "3"+Envir

[IronPython] At OsCon?

2006-07-27 Thread Dino Viehland
If you're at OsCon tonight there's a gathering of some MS people in Portland tonight.  Unfortunately we won't all be there but some of us will.Let me know if you're interested in coming and I'll send you directions.      ___ users mailing list users@

Re: [IronPython] NET Attributes.

2006-07-27 Thread Tim Riley
Thanks for all the info. I was looking into using IP with AutoCAD and .NET attributes are required.tjrOn 7/26/06, Michael Foord < [EMAIL PROTECTED]> wrote:Martin Maly wrote:>> Unfortunately, no. Adding .NET attributes on Python classes in > IronPython is not possible.>> Somewhat similar Pythonic th

Re: [IronPython] Working Beta7 WinForms Code fails under RC1

2006-07-27 Thread Kevin Bjorke
Changing "self.DefaultFont" to "Control.DefaultFont" results is a different error: No overloads of DrawString could match(Graphics, str, Font, SoildBrush, Point) DrawString(Graphics, str, Font, Brush, PointF) DrawString(Graphics, str, Font, Brush, RectangleF) So I chna

Re: [IronPython] Hosting question

2006-07-27 Thread Slide
Yes and EvaluateXX methods throw an exception on something like print "Hello, world" because they are used to just evaluate expressions as far as I can tell. The Execute method requires me to set standard output as I am doing to with ExecuteToConsole. Also, another question, when I am using the

[IronPython] Debugging support PythonEngine

2006-07-27 Thread Kristof Wagemans
I have been experimenting with the debugging support for the PythonEngine. When I use the following code I have several problems.   PythonEngine _pe; EngineOptions options = new EngineOptions(); options.ClrDebuggingEnabled = true; _pe = new PythonEngine(options); _pe.ExecuteFile(@" 

Re: [IronPython] Working Beta7 WinForms Code fails under RC1

2006-07-27 Thread Martin Maly
This is really interesting error message. I am going to file a bug for us to look into this for the final release. My guess is that the bug here may be that we get confused by the static property being accessed with "self" argument. Could you try accessing the property as Control.DefaultFont ?

Re: [IronPython] Hosting question

2006-07-27 Thread Martin Maly
Have you tried using the PythonEngine.Evaluate, PythonEngine.Execute or PythonEngine.EvaluateAs methods? Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Slide Sent: Wednesday, July 26, 2006 7:32 AM To: Discussion of IronPython Subject: [IronPython

Re: [IronPython] Working Beta7 WinForms Code fails under RC1

2006-07-27 Thread Kevin Bjorke
That was correct! Sadly now I'm getting an error when I trry to access a Windwos Forms Panel DefaultFont property. The line g.DrawString(self.block.name,self.DefaultFont, bb, Point(4, 2)) (g is a Graphics object -- this DID work under Beta 7!) Results in the error get_Default

Re: [IronPython] speed

2006-07-27 Thread Mike Raath
"test.py is the actual benchmark, and the other one is the actual benchmark. The code for both is at the end of this message"Should  read  "test.py is the actual benchmark. The code for both is at the end of this message" ___ users mailing list users@lis

Re: [IronPython] speed

2006-07-27 Thread Mike Raath
An issue on CodePlex - http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=651 - was raised on my behalf to do with performance using BeautifulSoup (a forgiving HTML parser). Here's a simple test which does the parsing and the "prettifying" - the process where BeautifulSou

Re: [IronPython] Working Beta7 WinForms Code fails under RC1

2006-07-27 Thread Martin Maly
I wonder if the exception string is off a little. What it probably should say is "expecting array, got list". We no longer have automatic conversion from list to array. We have one from tuple to array, but not from list. You can construct the array explicitly: System.Array[element_type](anythin

[IronPython] Working Beta7 WinForms Code fails under RC1

2006-07-27 Thread Kevin Bjorke
I have these two lines which worked well under Beta7: cb = Drawing2D.ColorBlend() cb.Colors = [c,hilight,c,c] Now I get an error saying "expecting list got array" ?? --- This email message is for the sole use of t

Re: [IronPython] run edna-0.6 , thread exception

2006-07-27 Thread Haibo Luo
This is valid bug. I will open a bug in codeplex: Seems the argument name of "args" is giving our KwArgBinder a hard time. To workaround this for now, you may try rename "args" in Thread.__init__ to other, such as "args2". Thanks for the report. -Original Message- From: [EMAIL PROTECTE

Re: [IronPython] md5 builtins module

2006-07-27 Thread Mark Rees
Great work Kevin. It's my understanding that the IP team want to overtime make more of the standard library modules that rely on compiled extensions part of the IP Module.cs. So you have done one for them. The bigger issue that was discovered when you tried running Seo's md5.py is the IP's way of

[IronPython] run edna-0.6 , thread exception

2006-07-27 Thread Kevin Chu
after I implement md5 module by myself,I can successful run edna-0.6 . but when browse edna site,it throws exception D:\TECH\edna-0.6>D:\TECH\IronPython\ipy.exe D:\TECH\edna-0.6\edna.py edna: Ogg Vorbis support disabled, to enable it you will need to install the "py og

[IronPython] md5 builtins module

2006-07-27 Thread Kevin Chu
yesterday,we talked about missing md5 module. first,I found RC1 without md5 module, second,I found md5.py that be provide by Seo(http://sparcs.kaist.ac.kr/~tinuviel/fepy/lib/) is not working . so,I write a builtin module ,put it into source,and compile it. md5 module can work ! below is md5 module