RE: [IronPython] Error when using Options.FastEval

2005-10-04 Thread Martin Maly
Hi Szymon, Sorry for delayed response. The exact difference between the two modes is that FastEval does not generate IL to be executed. Instead, it walks the abstract syntax tree and evaluates the expressions directly. The reason you are seeing the error is that the name resolution for the expr

RE: [IronPython] Accessing Win Form Properties

2005-10-04 Thread Martin Maly
I suspect that the "Form" you are referencing is the System.Windows.Forms.Form class. Once you have instance, it should just work: f = Form() f.Text = "Hi" print f.Text I hope this helps Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Davy Mitchel

RE: [IronPython] Nested Functions

2005-09-28 Thread Martin Maly
Closures are not yet supported by IronPython. I am fixing this as we speak :) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kirk OlynykSent: Friday, September 23, 2005 3:34 PMTo: users-ironpython.com@lists.ironpython.comSubject: [IronPython] Nested Functions # This wor

RE: [IronPython] WinFX

2005-09-28 Thread Martin Maly
Yes, IronPython does work with WinFX. The best combination is .Net 2.0. Beta 2 + WinFX Beta 1 + IronPython 0.9 and newer.   The WinFX download page seems somewhat confusing by asking to uninstall previous versions of .NET. At the same time, it says at the bottom of the download page that: "

RE: [IronPython] Iterating over Dictionary returns the wrong objects?

2005-09-26 Thread Martin Maly
Hi Ray, With .NET Frameworks Beta 2 the behavior is exactly as you observe, however, I found that your code works as expected on the newest builds of .NET Frameworks, including the Visual Studio Release Candidate build available to MSDN subscribers. Martin -Original Message- From: [EMAIL

RE: [IronPython] Misleading error messages

2005-09-26 Thread Martin Maly
The incorrect number of arguments misleading error is a known problem that I haven't had time to fix yet. Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ray Djajadinata Sent: Sunday, September 25, 2005 3:39 AM To: users-ironpython.com@lists.ironpy

RE: [IronPython] EXE problem

2005-09-23 Thread Martin Maly
For the exes to run, they require the IronPython runtime (IronPython.dll and IronMath.dll). Since we do not install those into the Global Assembly Cache, running the stand-alone exe in the directory that doesn't contain Iron*.dll will fail with the message you are seeing. At this time, generating

RE: [IronPython] RE: Problems in Automating IE with IronPython

2005-09-23 Thread Martin Maly
IronPython caches COM interfaces it comes across and when the COM object at hand implements interface that is not in the cache, IP calls method to convert the COM interface into .NET metadata and that takes a long time. Now that you are using the tlbimp-ed version, the interfaces make it to the cac

RE: [IronPython] bug

2005-09-23 Thread Martin Maly
I did actually look into this and the join works just fine. Problem was, if I remember correctly, that we split the file into different chunks due to newline character handling.   It is definitely semantic difference - and therefore a bug - so I intend to fix it. It is just that I was focusin

[IronPython] IronPython 0.9.2 released

2005-09-22 Thread Martin Maly
Hello, We have just released IronPython 0.9.2. In addition to focusing on the CPython regression test suite and fixing bugs, we also spent time prepairing IronPython for PDC 2005 conference where Jim spent the whole of the last week. There were many changes in IronPython codebase, mostly inspired

RE: [IronPython] Re: Why won't these snippets run?

2005-09-19 Thread Martin Maly
I must have mistyped the GetType function the first time around because IronPython would find it otherwise. The IronPython's logic to look-up built-in methods finds the method GetType on the __builtin__ class implementation. I don't have solution for this yet, but at least we understand what is g

RE: [IronPython] Re: Why won't these snippets run?

2005-09-19 Thread Martin Maly
Hi Ray, Fredrik already asnwered your generator expression related question. As for the arrays, Here is solution that seems to work: >>> from System import * >>> a = Array.CreateInstance(Int32, 10) >>> a System.Int32[](0, 0, 0, 0, 0, 0, 0, 0, 0, 0) >>> r = range(10) >>> for i in r: a[i] = i >>> a

RE: [IronPython] Why won't these snippets run?

2005-09-18 Thread Martin Maly
Hi Ray, > Ray Djajadinata Wrote: > > fileBeforeSort = file("READ_ME_AND_SORT_ME.txt", "r") > afterSort = sorted(int(line.rstrip('\n')) for line in fileBeforeSort) > fileBeforeSort.close() > > IronPython tripped on the 2nd line, it said: > > SyntaxError: unexpected token for at > ReadAndSortAn

RE: [IronPython] self not known in lambda function

2005-09-06 Thread Martin Maly
Thanks for he repro and bug report, Jacques, the bug you see is caused by missing implementation of closures in IronPython. The closure implementation is on our to-do list.   Thanks! Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. de HoogeSent: Friday, September 0

RE: [IronPython] Memory leak in PythonEngine.Evaluate ?

2005-09-02 Thread Martin Maly
Hi Szymon, I believe I haven't yet responded to your questions. Sorry for the delay. > First I iterated the Embed1 sample 10 000 times. Unfortunately this resulted > in big increase in memory allocation (from 10K to >100K confirmed both in Task > Manager and with perfmon). I started looking at P

RE: [IronPython] IronPython 0.9.1 released

2005-09-02 Thread Martin Maly
Hi Keith, sorry for the long time it took to respond, > Keith J. Farmer Wrote: > ILMerge, or GAC? We are not installing IronPython in the GAC yet because of the stage of development we are in. I am guessing that once we hit 1.0, the bits could easily live in GAC. > Out of curiosity, is there go

[IronPython] More IronPython, embedding and debugging

2005-09-02 Thread Martin Maly
This time from Shawn, another colleague of mine http://blogs.msdn.com/shawnfa/archive/2005/09/02/460216.aspx Martin ___ users-ironpython.com mailing list users-ironpython.com@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpyth

RE: [IronPython] Iron Python language compliance

2005-09-02 Thread Martin Maly
I know of the 'with' statement from Guido's presentation at Oscon. Other than that, I haven't seen detailed release schedule for 2.5 either so I am only going with the PEPs that have been accepted (342, 343). Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On B

RE: [IronPython] Iron Python language compliance

2005-09-02 Thread Martin Maly
Title: RE: [IronPython] Iron Python language compliance We already have generators, but yes. for 1.0 we are tragetting 2.4 compatibility (I may even implement few of the 2.5 upcoming features such as the new 'with' statement). Martin From: Ray Djaj

[IronPython] Debugger scripted with IronPython

2005-09-01 Thread Martin Maly
A colleague of mine published two interesting articles on his blog yesterday. He embedded IronPython in the managed debugger (mdbg) and made the debugger scriptable.   First blog describes how to use the modified debugger:   http://blogs.msdn.com/jmstall/archive/2005/08/31/Mdbg_Python_e

RE: [IronPython] Environment.Platform? and a bug

2005-08-26 Thread Martin Maly
[EMAIL PROTECTED] on behalf of Martin Maly Sent: Fri 8/26/2005 11:11 AM The bug ... I assume it is in the "-X:TabCompletion" console, correct? I am going to look into it. ___ users-ironpython.com mailing list users-ironpython

RE: [IronPython] Environment.Platform? and a bug

2005-08-26 Thread Martin Maly
Keith, As for the System.Environment.Platform ... I asked around and got response that the feature won't be added for the Visual Studio 2005 release. The APIs are already locked down at this point. The bug ... I assume it is in the "-X:TabCompletion" console, correct? I am going to look into it.

RE: [IronPython] Console

2005-08-24 Thread Martin Maly
Hi Morgan, Good question. I believe it is actually a bug that we print the "()" on enter. We didn't turn the console on by default because it is just the first draft of the console, but it is not yet good enough to turn on by default, I think. As time permits I hope to improve it and eventually t

RE: [IronPython] IronPython 0.9.1 released

2005-08-24 Thread Martin Maly
uild using Release to hide it again? - Keith J. Farmer [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Maly Sent: Tuesday, 23 August 2005 16:13 * calling .Net methods with "ref" parameters is fixed * del with parenthese

[IronPython] IronPython 0.9.1 released

2005-08-23 Thread Martin Maly
Hello IronPython community, Today we have released IronPython 0.9.1, a small incremental release that contains several fixes for issues that were found in the 0.9 release and few changes in the console experience. The list of changes: * calling .Net methods with "ref" parameters is fixed * del w

RE: [IronPython] [0.9 @ Mono 1.1.8.3] results of TestAll.py

2005-08-15 Thread Martin Maly
Yes, you are right, I forgot to update the makefile. I am going to fix it for the next release, I hope local change will work for you in the meantime. Thanks Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Zoltan Varga > Sent: Monday, Au

RE: [IronPython] Iron Python Library Usage

2005-08-15 Thread Martin Maly
age- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jonathan Jacobs > Sent: Monday, August 15, 2005 1:08 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Iron Python Library Usage > > Martin Maly wrote: > > It is not obvious how

RE: [IronPython] Iron Python Library Usage

2005-08-15 Thread Martin Maly
Hi Ray, Thanks for your compliments, we are happy that you find IronPython useful. You are right, there are many built-in modules missing or incomplete in IronPython 0.9. Our focus for 0.9 was interoperability with .Net and between 0.9 and 1.0 we are going to invest a lot into making CPython and

[IronPython] Parrotbench and Pystone - adding external tests to IronPython

2005-08-11 Thread Martin Maly
Hello,last week I promised to send out a description how to incorporate Pie-thon (a.k.a. parrotbench) and Pystone tests into the IronPython distribution to run the tests along with the IronPython test suite. Here is how to do it. The environment in which we run tests looks like this:IRONPYTH

RE: [IronPython] language Support-Chinese

2005-08-10 Thread Martin Maly
Would it be possible for you to send us a short code snippet that you had problem with? I would like to find out whether the problem is in parsing, encoding usage, etc.   Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ??Sent: Wednesday, August 10, 2005

RE: [IronPython] Python Lib Socket

2005-08-08 Thread Martin Maly
Incomplete. Many of the builtin modules are not yet implemented. It is going to be the focus of our work between now and 1.0 to implement more and more of those. Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chu Kevin > Sent: Friday, Au

RE: [IronPython] Set not implement?

2005-08-08 Thread Martin Maly
Set is not implemented yet. There is a bug in GotDotNet bug database open already. Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chu Kevin > Sent: Monday, August 08, 2005 2:35 AM > To: Discussion of IronPython > Subject: [IronPython] S

RE: [IronPython] Access to Enumeration Values

2005-08-04 Thread Martin Maly
e feedback, it is a good point. Martin From: Anthony Tarlano Sent: 8/4/2005 1:22 PM To: Martin Maly Cc: Anthony TarlanoDiscussion of IronPython Subject: Re: [IronPython] Access to Enumeration Values Martin, I still think it can be made better. F

RE: [IronPython] IronPython 0.9 released

2005-08-04 Thread Martin Maly
Hi Keith!   LoadWithPartialName may be indeed removed as the build-time warning suggests suggests. There is a good reasoning behind removing the method (what version, from where, etc ... would the method call load? I think there is a blog out there that talks more about the reasoning:   http:/

RE: [IronPython] IronPython 0.9 released

2005-08-04 Thread Martin Maly
Title: RE: [IronPython] IronPython 0.9 released As for the static compilation, it is another 'maybe' for 1.0 and we are not decided one way or another (it is another topic you can provide feedback on and let us know how important it is to you). For the 0.9 I actually went somewhat further wi

RE: [IronPython] IronPython 0.9 released

2005-08-04 Thread Martin Maly
n .Net 1.1 is for you. I hope I didn't miss anything and this answers your question. Martin From: Lorenzo Bolognini Sent: 8/4/2005 2:40 AM To: Discussion of IronPython Cc: Subject: Re: [IronPython] IronPython 0.9 released On 8/2/05, Mart

RE: [IronPython] [0.9] Tab completion bug

2005-08-04 Thread Martin Maly
Yes, it is a known problem. The tab-completion is far, far from finished and this is probably the first thing for me to fix - pressing tab at the beginning of the line should not offer options, but simply tab out.   Thanks for feedback! MArtin From: Keith J. Farmer Sent: 8/4/2005 2:44 AM To: D

RE: [IronPython] Access to Enumeration Values

2005-08-04 Thread Martin Maly
Hi Anthony, I don't think it is a bug. The value you get when getting an enum value (SocketOptionName.Broadcast) is indeed the value itself: x = SocketOptions.Broadcast x becomes a boxed enum object. It is the ToString() method of the enum object prints the name. Consider following C# code that

RE: [IronPython] 'map' not working the same betweenIronPython-0.7.xand IronPython-0.9?

2005-08-03 Thread Martin Maly
This is an interesting bug. The method resolution actually chooses the better method to call from the parameter binding perspective, but unfortunatelly, the map method then doesn't do what it should.   Again, this is something I am going to fix soon. Thanks for the great repro, Steven   Mart

RE: [IronPython] Overloads

2005-08-03 Thread Martin Maly
y, August 03, 2005 12:51 PM To: Discussion of IronPython Subject: Re: [IronPython] Overloads Martin Maly wrote: > the Random.Next is not a static method. You can either pass the instance as the first argument: Hi Martin, Yes, I figured that out a little while later. Too bad I had already ma

RE: [IronPython] IronPython 0.9 released

2005-08-03 Thread Martin Maly
Title: RE: [IronPython] IronPython 0.9 released I am not aware of any such effort being under way. We are, however, keenly aware of the need have the kind of documentation you are referring to. Martin From: Richard Hsu Sent: 8/2/2005 6:22 PM To:

RE: [IronPython] Overloads

2005-08-03 Thread Martin Maly
Title: RE: [IronPython] Overloads Hi Jonathan, the Random.Next is not a static method. You can either pass the instance as the first argument: >>> System.Random.Next[int](System.Random(), 10) 7 >>> System.Random.Next[int](System.Random(), 10, 20) IronPython.Objects.PythonValueError: Ba

RE: [IronPython] Overloads

2005-08-03 Thread Martin Maly
Title: RE: [IronPython] Overloads One more thing. Random.Next is a good example to play with the overload method selection, but there is no need to do that. IronPython will resolve most cases automatically and the method selection is in place to handle the cases where IronPython doesn't seem

RE: [IronPython] IronPython 0.9 released

2005-08-02 Thread Martin Maly
Admitedly, the console is far from ideal. However I am happy it saves me type typing sys.LoadAssemblyFromFile :)   M. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sumit BasuSent: Tuesday, August 02, 2005 3:44 PMTo: Discussion of IronPythonSubject: RE: [IronPython] IronPy

RE: [IronPython] IronPython 0.9/SharpDevelop 1.1 importingIronPython.dll error.

2005-08-02 Thread Martin Maly
Unfortunatelly I don' have good answer for you. I actually did try it with both IronPython 0.9 and 0.7.6 and I got the same failure on both accounts. What I could not understand whether the 'setup' the dialog asked me to check, whether it was it setup of SharpDevelop, or IronPython. Martin -O

[IronPython] IronPython 0.9 released

2005-08-02 Thread Martin Maly
Hello IronPython community,   it has been exactly seven weeks since the last IronPython release - 0.7.6. Back then we announced that the next release would take longer than our usual two weeks, it would include some larger-scale changes, and it would be version 0.8.   The work did take couple

RE: [IronPython] Version 1.0?

2005-07-26 Thread Martin Maly
Hi Keith,   very fair question and yes, you are correct saying that we had planned for 2-week release cycle. Until the last release (0.7.6) we were actually true to our plan to release every two weeks. We did expect the next release to take longer than the usual two weeks (as we announced in

RE: [IronPython] Version 1.0?

2005-07-25 Thread Martin Maly
Unfortunately, no. We will not have version 1.0 for the conference. The plan is still the same as it was about a month ago when we outlined the roadmap towards the 0.8 release.   Martin   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis M. GonzalezSent: Monday, July 2

RE: [IronPython] How to call IronPython Interpreter with C# code?

2005-07-21 Thread Martin Maly
Hi Morgan, > Morgan Martinet Wrote: > > Why don't you use the C# string notation that allows you to > have multiple lines of text (as in Python with the triple > quote notation)? The perfectionist side of me doesn't like what it does to the code formatting :( (for the record, I like the C wa

RE: [IronPython] How to call IronPython Interpreter with C# code?

2005-07-21 Thread Martin Maly
You can call IronPython through the IronPython.Hosting.PythonEngine object. Here's a trivial example: using IronPython.Hosting; class Program { static void Main(string[] args) { PythonEngine engine = new PythonEngine(); Console.WriteLine( engine.Evaluate("2

RE: [IronPython] Plans for overloads?

2005-07-20 Thread Martin Maly
Title: Re: [IronPython] Plans for overloads? Yes, we are in .NET realm, but we are still trying to find solution that doesn't require change to the Python syntax. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J. FarmerSent: Wednesday, July 20, 2005 11:14 AMTo: Disc

RE: [IronPython] Plans for overloads?

2005-07-19 Thread Martin Maly
; print Double.TryParse[str, Type.MakeByRefType(Double)].__doc__ bool TryParse(str, System.Double&) >>> Double.TryParse[str, Type.MakeByRefType(Double)]("3.5") (True, 3.5) Martin -Original Message- From: Martin Maly Sent: Friday, July 15, 2005 1:30 PM To: 'Discussio

RE: [IronPython] Python extensions

2005-07-17 Thread Martin Maly
This is a bug in 0.7.6 that has been already fixed. The fix will be available in the closest upcoming release. Martin > Jonathan Jacobs Wrote: > > Keith J. Farmer wrote: > > You can -- at least in asp.net 2 > > Yes, it appears you can...however IronPython throws away > exported types without a

RE: [IronPython] Plans for overloads?

2005-07-15 Thread Martin Maly
Title: RE: [IronPython] Plans for overloads? Yep. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J. FarmerSent: Friday, July 15, 2005 2:01 PMTo: Discussion of IronPythonSubject: RE: [IronPython] Plans for overloads? These are plans for 0.8, righ

RE: [IronPython] Plans for overloads?

2005-07-15 Thread Martin Maly
The > Jonathan Jacobs Wrote: > > At the moment "out" parameters are not really taken into > account when matching up signatures, if I'm not mistaken, is > this going to be addressed? The out parameters are the trickiest part. The solution we are working on will hopefully address that problem

RE: [IronPython] Plans for overloads?

2005-07-15 Thread Martin Maly
The overloaded function resolution (when IronPython calls .Net) is currently being worked on. You probably read the original code in which IronPython chooses the first callable alternative. The new code does better finds out all methods that can be called and tries to choose the 'best fit'. This s

RE: [IronPython] Embedding.

2005-07-11 Thread Martin Maly
Sorry for the delay in responding, Alan. For the simplest scenarios you don't need to initialize PythonEngine. For example, consider: class Program { static void Main(string[] args) { PythonEngine e = new PythonEngine(); object r = e.Evaluate("2+2");//r == 4 } } For t

RE: [IronPython] Making A Windows Form App

2005-07-11 Thread Martin Maly
The command line tool that comes with IronPython runs in the standard Windows console. You can set up the console to allow copy'n' paste. To do that: left click on the icon on the upper-left corner of the console window select "Defaults" Check "Quick edit mode" Restart the IronPython. Then you ca

RE: [IronPython] Documentation

2005-07-11 Thread Martin Maly
As of this moment there is no official documentation project under way except for the readme that is part of the distribution. The readme gives few examples and covers LoadAssemblyByName. Overall, the documentation story as of now is not a very good one and we need to improve it. As for IronPython

RE: [IronPython] Making A Windows Form App

2005-07-06 Thread Martin Maly
Hi Freddie, Below is the working code. I would be interested to hear what you had most problems with. Common difficulty is the LoadAssemblyByName function. Feel free to post feedback to this discussion alias. We are interested to hear what roadblocks developers encounter as they try to use IronPyt

RE: [IronPython] Problems when loading COM object implemented usingctypes

2005-07-06 Thread Martin Maly
Title: RE: [IronPython] Problems when loading COM object implemented usingctypes Hi, To use COM server, you need to create a .NET assembly from the COM assembly type information for .NET to use. There is a tool that is part of .NET SDK - tlbimp.exe - which does that for you. It spits out a

RE: [IronPython] bug?

2005-07-02 Thread Martin Maly
Thanks for the report, Louis; It is most likely an IronPython bug. I am going to look into this.   Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis M. GonzalezSent: Thursday, June 30, 2005 2:25 PMTo: users-ironpython.com@lists.ironpython.comSubject

RE: [IronPython] PowerPoint Automation

2005-06-30 Thread Martin Maly
Hi, As for the "Visible" property. Reflecting on the Office Primary Interop Assemblies shows that PowerPoint's Visible property has different type than Word's one. Word is Boolean whereas PowerPoint has MsoTriState enum as type. It also seems that hiding the application window once visible is not

RE: [IronPython] Word Automation

2005-06-20 Thread Martin Maly
Hi, Tim already answered the first problem you faced, let's see if I can help with the others. >> I do not understand why I cannot iterate in the collection of Documents While the collection you get back may (and I am not sure whether it does or not) inherit from IEnumerable, the code I put in I

[IronPython] IronPython at O'Reilly Open Source Convention

2005-06-17 Thread Martin Maly
Hello IronPython community, The O'Reilly Open Source Convention that takes place August 1-5, 2005 in Portland, OR will host two IronPython events. On Tuesday, August 2nd, 2005, Jim and Martin will be presenting a three hour long tutorial on IronPython, see here for details: http://conferences.ore

RE: [IronPython] IronPython 0.7.6 released

2005-06-17 Thread Martin Maly
Yes, we do have a regression test suite that we keep extending as the development moves forward. We are going to make it part of the distribution package starting with the next release. Apparently, this is something we should have done earlier. Please accept our apologies. Martin > Miguel de Ica

RE: [IronPython] .NET build used for IronPython

2005-06-15 Thread Martin Maly
Hi Dan, For development, I use Visual Studio 2005 Beta 2, build 8.0.50215.44. The computer that builds the IronPython distribution and runs the tests has .Net Framework 2.0 Beta 2 2.0.50215.44 and the Beta 2 SDK (also 2.0.50215.44). For this machine I actually downloaded the .Net Beta 2 packages

RE: [IronPython] IronPython 0.7.6 released

2005-06-14 Thread Martin Maly
They are implemented as members. Since the __doc__ behaves like any other member, The implementation just uses the member semantics. Consider for example: >>> class c: ... "doc 1" ... print __doc__ ... __doc__ = "doc 2" ... print __doc__ ... doc 1 doc 2 >>> I hope this answers yo

[IronPython] IronPython future plans

2005-06-14 Thread Martin Maly
Hello IronPython community Now that we have shipped the 0.7.6 release of IronPython we want to share our plans for the future releases, how we get from here to the 0.8 release. There are two areas in which we want to make broader changes between now and 0.8. They both relate to the way IronPython

[IronPython] IronPython 0.7.6 released

2005-06-14 Thread Martin Maly
Hello IronPython community, We have just released the version 0.7.6 of IronPython. The most important changes that this release contains are: * Filtering of exception call stacks - by default, we filter the call stack to only show the relevant stack frames. - the property PythonEngine.Exce

RE: [IronPython] 0.7.6 changes

2005-06-10 Thread Martin Maly
Hi Keith, The list of changes for 0.7.6 is not finalized yet. Jim and I are still working on the 0.7.6 release which was delayed a bit due to my recent vacation. We are planning to release 0.7.6 in the coming days (my personal hope is Monday or Tuesday at the latest). Martin > -Original Mess

RE: [IronPython] Cannot run executable

2005-06-07 Thread Martin Maly
The reason you get the error message is that we do not set an entry point on the generated assemblies. This was recently removed as part of the reload() implementation. We are going to add it back in 0.7.6 as a short-term solution. The long term solution - a full-fledged compilation of python sourc

RE: [IronPython] Readlines

2005-06-07 Thread Martin Maly
Yes. It is a bug. Thanks for reporting it! Martin > Jon Cosby Wrote: > > I see IronPython does not have the CPython readlines method. > Is this an oversight? > > > Jon Cosby ___ users-ironpython.com mailing list users-ironpython.com@lists.ironpytho

RE: [IronPython] (no subject)

2005-05-22 Thread Martin Maly
This is a bug that has been fixed in one of the 0.7.* releases. You can get newest version (0.7.5) of IronPython from http://workspaces.gotdotnet.com/ironpython Martin > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jon Cosby > Sent: Sunday, May

RE: [IronPython] StringIO???

2005-05-18 Thread Martin Maly
Yes, that make sense. Between 0.7.4 and 0.7.5 Jim made few changes in the code that use features of .Net framework not available in Beta 1, and only available  in Beta 2.   M. From: Anthony Tarlano [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:26 AMTo: Martin Maly

RE: [IronPython] [0.7.5] exception on exit

2005-05-18 Thread Martin Maly
This is because at the end of executin IronPython saves the compiled code into snippets.dll into current directory (that would be C:\ I guess) which you may not have access to as non-admin. Do you think that may be it? M. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL P

RE: [IronPython] StringIO???

2005-05-18 Thread Martin Maly
.Hosting.PythonEngine.RunInteractive ()>>> IP-0.7.4 with Beta 1IronPython 0.7.4 on .NET 2.0.40607.42Copyright (c) Microsoft Corporation. All rights reserved.>>> import StringIO>>>On 5/18/05, Anthony Tarlano < mailinglist.account at gmail.com>

RE: [IronPython] IronPython and standard Python libraries

2005-05-17 Thread Martin Maly
thon > Subject: Re: [IronPython] IronPython and standard Python libraries > > On 5/17/05, Martin Maly <[EMAIL PROTECTED]> wrote: > > Hello, > > > > After reading Anthony's email on CPython's standard > libraries I tried > > to import the librarie

RE: [IronPython] word Automation

2005-05-17 Thread Martin Maly
With some code changes in IronPython (the changes are not in 0.7.5) I was able to get this working as far as making word app visible. However I was not yet successful with the Documents collection access. The object returned from the Documents property (and this was just a quick look, I am g

RE: [IronPython] StringIO???

2005-05-17 Thread Martin Maly
Strange that someone reported similar thing on GotDotNet forums. I believe that the cause is an old version of .Net. You need .Net 2.0 Beta 2 to run IronPython:   IronPython 0.7.5 on .NET 2.0.50215.44Copyright (c) Microsoft Corporation. All rights reserved.>>> import StringIO>>> You can get

[IronPython] IronPython and standard Python libraries

2005-05-17 Thread Martin Maly
Hello, After reading Anthony's email on CPython's standard libraries I tried to import the libraries using IronPython to see how well IronPython does just importing the libraries. Out of 182 modules that I tried to import 116 imported successfully (which does not unfortunately mean that they would

[IronPython] IronPython 0.7.5 released

2005-05-17 Thread Martin Maly
Hello IronPython community, Today we have released IronPython 0.7.5. The bugs we fixed for this release are: * Can't Open 2 or more IronPythonConsoles * File share error when opening the file for reading multiple times * Generate assembly in the same directory as the Python source * Can't OR flag

RE: [IronPython] Trouble with Single's

2005-05-15 Thread Martin Maly
Yes, there is plan to fix this. In some cases the Single type already works, but there are places where the support is still missing. Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Olynyk Sent: Sunday, May 15, 2005 9:28 AM To:

RE: [IronPython] Re: 'out' parameters

2005-05-11 Thread Martin Maly
Nick, This is a very tricky case. Jim and I just discussed it and while we want to provide good solution to this case, it may take some time to come up with the right way to solve the problem because on syntactic level there is really no way to distinguish between the two methods. If you need sho

RE: [IronPython] 'out' parameters

2005-05-11 Thread Martin Maly
The return value and output parameters (if they are in total more than one) are returned as tuple: namespace N { public class C { public static int M(out int i, out int j, out int k) { i = 20; j = 30; k = 40; return 10; } } }

RE: [IronPython] Re: IronPython 0.7.4 released

2005-05-03 Thread Martin Maly
Hi Daniel, For the sys module, you can do: import sys dir(sys) and get the result that way. Similarly for __builtin__. For sys and __builtin__ what you see in dir is what is implemented (or else it is a bug). However, there are modules - for example recently added 'binascii' - in which we only h

RE: [IronPython] Re: IronPython 0.7.4 released

2005-05-03 Thread Martin Maly
Yes, it was part of getting the standard CPython's site.py to import correctly by IronPython. The standard site.py would assume that it is dealing with Jython if it detects 'java' as the prefix of the sys.platform string. Martin > Michael Spencer Wrote: > > Thanks > > I note sys.platform has al

[IronPython] IronPython 0.7.4 released

2005-05-03 Thread Martin Maly
Hello IronPython community, We have just released IronPython 0.7.4. There were few feature requests and bug fixes that the community felt strongly about so we decided to release the 0.7.4 faster than usual. We hope that you will find the update useful even though we may have not delivered on all o

RE: [IronPython] Not GotDotNet...

2005-04-28 Thread Martin Maly
We are aware of the problems with GotDotNet and are looking for the long-term solution. If you have problems reporting bugs on the site, you can send email with the bug description to "ironpy (at) microsoft (dot) com" or even to this mailing list and we will take the bug from there. Martin > Lu

RE: [IronPython] Saving sys.path

2005-04-27 Thread Martin Maly
Title: [IronPython] Saving sys.path There are, as far as I can see, three different ways to help in this case and I am looking into implementing all of them very soon, definitely for the next release.   CPython uses environment variables PYTHONSTARTUP and PYTHONPATH to drive the initializ

[IronPython] IronPython 0.7.3 Released

2005-04-26 Thread Martin Maly
Hello IronPython community, Today we have released IronPython 0.7.3. The main changes over the 0.7.2 release are: * Operator overloading. Following code now works in IronPython: ... x = Mapack.Matrix.Random(2,3) y = Mapack.Matrix.Random(3,5) x * y * Empty construct

RE: [IronPython] Questions for FAQ or User Guide

2005-04-20 Thread Martin Maly
That is a good suggestion. The initial look shows that it would be quite possible to implement it. I'll give it a try. Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Monson-Haefel Sent: Tuesday, April 19, 2005 6:29 PM To: Discussion of Iro

[IronPython] Re: Working with System.Data.DataColumn[]

2005-04-19 Thread Martin Maly
Anthony, Yes, there is a way. With few changes your code is essentially correct: import sys sys.LoadAssemblyByName('System.Data') from System import Type, Console, Array from System.Data import DataSet, DataColumn key = Array.CreateInstance(DataColumn, 1) dataset = DataSet('MySet') dataset.T

RE: [IronPython] Questions for FAQ or User Guide

2005-04-19 Thread Martin Maly
>>> John A. Tenney Wrote: >>> >>> 1. I'd like to pass an array of 6 doubles to a method, but get an error message. >>> For example, the "myMethod" call below fails when it requires a double array. >>> array=[1, 2, 3.5, 4] >>> myObject.myMethod(array) If you create the array using the syntax abov

RE: [IronPython] IronPython 0.7.2 Released

2005-04-13 Thread Martin Maly
Thanks, Keith! Calling overloaded operators is not implemented yet and my quick test showed that at the moment you can't even call: Matrix.op_Multiply(a, a.Inverse) directly. We should have fix for this in the next release. Simple version of this is already working on my computer. Martin -

[IronPython] IronPython 0.7.2 Released

2005-04-12 Thread Martin Maly
We are excited to announce the release of IronPython 0.7.2. The improvements over the recent 0.7.1 release are: * Indexing .Net arrays, both single- and multi-dimensional * Correct exception thrown on division by zero (ZeroDivisionError) * string constant parsing fixed to handle unrecognized esca

[IronPython] IronPython 0.7.2 Released

2005-04-12 Thread Martin Maly
We are excited to announce the release of IronPython 0.7.2. The improvements over the recent 0.7.1 release are: * Indexing .Net arrays, both single- and multi-dimensional * Correct exception thrown on division by zero (ZeroDivisionError) * string constant parsing fixed to handle unrecognized esca

RE: [IronPython] Error with non-jagged array?

2005-04-09 Thread Martin Maly
This is an IronPython bug. We only support one-dimensional indexing at the moment. Martin > -Original Message- > From: [EMAIL PROTECTED] [mailto:users- > [EMAIL PROTECTED] On Behalf Of Keith J. Farmer > Sent: Saturday, April 09, 2005 3:10 AM > To: Discussion of IronPython > Subject: [Iro

RE: [IronPython] Bug Report

2005-04-07 Thread Martin Maly
Hi Ying-Shen, Reporting the bug like this is completely sufficient. GDN is good place to enter bugs, but sending email is just as good. Thanks for the report! Thanks and keep in touch Martin > Ying-Shen wrote: > Subject: [IronPython] Bug Report > > Hi, > > I knew GDN bug tracker maybe the righ

RE: [IronPython] Tests, and plans

2005-04-04 Thread Martin Maly
> Keith J. Farmer Wrote: > Well, since these tests will be viewed by many to be the standard, do > the tests planned include a superset of these, at least? Yes. > I was making a haphazard estimate of the timing for 1.0, figuring a > two-week cycle, going no further than 0.0.x, would give up to 60

  1   2   >