From nev at delap.com Sun Jan 2 10:45:24 2005 From: nev at delap.com (Nev Delap) Date: Sun, 02 Jan 2005 19:45:24 +1000 Subject: [IronPython] How does IronPython resolve overloads? Message-ID: <20050102094524.9E168EDB86@ws6-1.us4.outblaze.com> Hi there. Can anyone tell me, or point me at a link that will tell me how IronPython chooses which overloaded method to call? In the example below the Open() method has a number of overloads... 1. Open() 2. Open(string) 3. Open(string[]) 4. Open(delegate) // async versions with a delegate to call when the async open completes. 5. Open(string, delegate) 6. Open(string[], delegate) In the example I want it to be calling #1, but it seems to be calling #4, and then failing to create a delegate out of the string parameter. Any help will be greatly appreciated. Nev >>> connection.Open("elvin://localhost") System.ArgumentException: Error binding to target method. at System.Delegate.InternalCreate(Object target, String method, Boolean ignoreCase) at System.Delegate.CreateDelegate(Type type, Object target, String method) at IronPython.Objects.Ops.GetDelegate(Object o, Type delegateType) at IronPython.Objects.Ops.ConvertTo(Object inObject, Type toType, Object& outObject) at IronPython.Objects.ReflectedMethodBase.BindArgs(MethodBase info, Object& instance, Object[] args) at IronPython.Objects.ReflectedMethodBase.Call(Object[] args) at IronPython.Objects.Ops.Call(Object func, Object arg0) at input_41.Run(Frame frame) at IronPythonConsole.IronPython.DoInteractive() >>> From curt at hagenlocher.org Mon Jan 3 02:01:47 2005 From: curt at hagenlocher.org (Curt Hagenlocher) Date: Sun, 2 Jan 2005 17:01:47 -0800 Subject: [IronPython] How does IronPython resolve overloads? Message-ID: <200501030101.RAA21337@dopey.hagenlocher.org> Nev Delap writes: > Can anyone tell me, or point me at a link that will tell me how > IronPython chooses which overloaded method to call? It does so very poorly. There's a description at http://tinyurl.com/4ko4t -- Curt Hagenlocher curt at hagenlocher.org From Ayende at Ayende.com Wed Jan 19 21:59:47 2005 From: Ayende at Ayende.com (Ayende Rahien) Date: Wed, 19 Jan 2005 22:59:47 +0200 Subject: [IronPython] Documentation about IronPython Message-ID: <20050119210140.62752985AE@che.dreamhost.com> I want to use an object from my assembly inside IronPython, how do I do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From le_mowi at yahoo.com.mx Sat Jan 22 08:08:08 2005 From: le_mowi at yahoo.com.mx (Red Crow) Date: Sat, 22 Jan 2005 01:08:08 -0600 (CST) Subject: [IronPython] E-book of Iron Python Message-ID: <20050122070808.15728.qmail@web50510.mail.yahoo.com> Hello: I'm want lear about the use of Iron Python but only found some few examples, where I found a e-book about the use of iron python? Thanks Mauricio Algalan _________________________________________________________ Do You Yahoo!? La mejor conexi?n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx From reginald at rare-it.com Sun Jan 23 10:43:13 2005 From: reginald at rare-it.com (R.R. Sprinkhuizen) Date: Sun, 23 Jan 2005 10:43:13 +0100 Subject: [IronPython] E-book of Iron Python In-Reply-To: <20050122070808.15728.qmail@web50510.mail.yahoo.com> Message-ID: <20050123094320.922E8985B7@che.dreamhost.com> Hi Mauricio, IronPython is a combination of Python and .NET, so if you start looking for Python material and .NET material, I think you have all the information at hand. At least that's how I do it. Good luck, Reginald -----Original Message----- From: users-ironpython.com-bounces at lists.ironpython.com [mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of Red Crow Sent: zaterdag 22 januari 2005 8:08 To: users-ironpython.com at lists.ironpython.com Subject: [IronPython] E-book of Iron Python Hello: I'm want lear about the use of Iron Python but only found some few examples, where I found a e-book about the use of iron python? Thanks Mauricio Algalan _________________________________________________________ Do You Yahoo!? La mejor conexi?n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx _______________________________________________ users-ironpython.com mailing list users-ironpython.com at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com From KarmaSlave at MyRealBox.com Sun Jan 23 21:14:16 2005 From: KarmaSlave at MyRealBox.com (Burning) Date: Sun, 23 Jan 2005 15:14:16 -0500 Subject: [IronPython] Any new status reports on IronPython? Message-ID: <41F40598.5050107@MyRealBox.com> Still in disrepair, or has work just been going on for IronPython behind the scenes? The last time I saw an update was just before Jim joined Microsoft. Is there anything new? From mc at mclaveau.com Mon Jan 24 21:59:37 2005 From: mc at mclaveau.com (Michel Claveau) Date: Mon, 24 Jan 2005 21:59:37 +0100 Subject: [IronPython] Re: users-ironpython.com Digest, Vol 6, Issue 5 References: <20050124200459.B198198588@che.dreamhost.com> Message-ID: <000401c50257$a0ebdeb0$0701a8c0@PORTABLES> Same question... From raptor at neurell.com Tue Jan 25 18:33:11 2005 From: raptor at neurell.com (raptor) Date: Tue, 25 Jan 2005 18:33:11 Subject: [IronPython] Using IronPython Inside a C# App. Message-ID: <20050125183312.17498.qmail@station197.com> I am trying to use IronPython from within a C# windows application. I can instantiate a module, frame run the parser. All works fine except I cannot seem to retrieve the output from the run of an expression statement (ExprStmt). It is automagically written out to the console. Looking at the DoInterActive() function in side of the IronPythonConsole project: Is seems to me that the code is run when the following line is execute: code.Run(topFrame); code is a SnippetMaker object, which has a Run method added dynamically. Does anyone know how I might retieve the String result of the Run call so that I can display it? Any help or insight is appreciated. From darrick at innatesoftware.com Tue Jan 25 21:11:11 2005 From: darrick at innatesoftware.com (Darrick Wiebe) Date: Tue, 25 Jan 2005 15:11:11 -0500 Subject: [IronPython] retreiving output References: <20050125200620.8CA67985CF@che.dreamhost.com> Message-ID: <003301c5031a$04bb6470$6401a8c0@S1Computer123> There is probably a better way to do this, but one possible solution is to redirect Console.Out to a stream that you can read. ----- Original Message ----- From: To: Sent: Tuesday, January 25, 2005 3:06 PM Subject: users-ironpython.com Digest, Vol 6, Issue 6 > Send users-ironpython.com mailing list submissions to > users-ironpython.com at lists.ironpython.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > or, via email, send a message with subject or body 'help' to > users-ironpython.com-request at lists.ironpython.com > > You can reach the person managing the list at > users-ironpython.com-owner at lists.ironpython.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of users-ironpython.com digest..." > > > Today's Topics: > > 1. Re: users-ironpython.com Digest, Vol 6, Issue 5 (Michel Claveau) > 2. Using IronPython Inside a C# App. (raptor) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 24 Jan 2005 21:59:37 +0100 > From: "Michel Claveau" > Subject: [IronPython] Re: users-ironpython.com Digest, Vol 6, Issue 5 > To: > Message-ID: <000401c50257$a0ebdeb0$0701a8c0 at PORTABLES> > Content-Type: text/plain; charset="iso-8859-1" > > Same question... > > > > > > > ------------------------------ > > Message: 2 > Date: Tue, 25 Jan 2005 18:33:11 > From: "raptor" > Subject: [IronPython] Using IronPython Inside a C# App. > To: users-ironpython.com at lists.ironpython.com > Message-ID: <20050125183312.17498.qmail at station197.com> > Content-Type: text/plain; charset="iso-8859-1" > > I am trying to use IronPython from within a C# windows application. I can > instantiate a module, frame > run the parser. All works fine except I cannot seem to retrieve the output > from the run of an expression statement (ExprStmt). It is automagically > written out to the console. > > Looking at the DoInterActive() function in side of the IronPythonConsole > project: > > Is seems to me that the code is run when the following line is execute: > > code.Run(topFrame); > > code is a SnippetMaker object, which has a Run method added dynamically. > > Does anyone know how I might retieve the String result of the Run call > so that I can display it? > > Any help or insight is appreciated. > > > ------------------------------ > > _______________________________________________ > users-ironpython.com mailing list > users-ironpython.com at lists.ironpython.com > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > > End of users-ironpython.com Digest, Vol 6, Issue 6 > ************************************************** From lobrien at knowing.net Tue Jan 25 22:20:42 2005 From: lobrien at knowing.net (Larry O'Brien) Date: Tue, 25 Jan 2005 11:20:42 -1000 Subject: [IronPython] retreiving output In-Reply-To: <003301c5031a$04bb6470$6401a8c0@S1Computer123> Message-ID: <20050125212122.6B2FA985B3@che.dreamhost.com> I sent the original of this offlist... What I did in Pynk (article and source at http://www.devx.com/TabletPC/Article/26666) was create a buffer class and redirect Python's stdout to it: q = new OutputQueue(); sys.stdout = q.pythonOut; ...snip... public class OutputQueue { MemoryStream outStr = new MemoryStream(1024); StreamReader outRdr; public PythonFile pythonOut; public OutputQueue() { outRdr = new StreamReader(outStr); pythonOut = new PythonFile(outStr, "rw", false); } public string ReadToEnd() { pythonOut.flush(); //Reset and read outStr.Position = 0; string retval = outRdr.ReadToEnd(); outRdr.DiscardBufferedData(); //Null it out outStr.Position = 0; byte[] nulls = new byte[retval.Length]; outStr.Write(nulls,0,nulls.Length); //Reset for writing outStr.Position = 0; return retval; } } Cheers, Larry