[IronPython] Zero-length regex split

2007-07-11 Thread Sanghyeon Seo
This sucks. I'm not sure which sucks more: that such code exists, or that it breaks on IronPython in hard-to-find manner. import re print re.split(':*', 'a:b::c') Quick workaround is to replace the pattern ':*' with ':+'. This may not be always possible. -- Seo Sanghyeon ___

[IronPython] Getting attribute of new-style bound methods overriding built-in types

2007-07-11 Thread Sanghyeon Seo
That was mouthful. This is for 1.1. (Running the following code on 2.0a2/Mono dies inside System.Reflection.Emit. Ugh.) class C(object): def __str__(self): return 'C' obj = C() getattr(obj.__str__, 'attribute', None) Result: TypeError: Cannot cast from source type to destination typ

Re: [IronPython] What happends with AddAssembly ?

2007-07-11 Thread Luis Capra (gmail)
Oks. Thank you very much! Luis From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Wednesday, July 11, 2007 7:16 PM To: Discussion of IronPython Subject: Re: [IronPython] What happends with AddAssembly ? You can call ClrModule.GetInstance().AddReference().

Re: [IronPython] What happends with AddAssembly ?

2007-07-11 Thread Dino Viehland
You can call ClrModule.GetInstance().AddReference(). The tentative thought is that we'll share this between languages so that you only need to do it once and all languages pick it up. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Capra Sent: Wednesday, July 11, 2007 11:32

Re: [IronPython] IronPython Logo / Icon

2007-07-11 Thread Keith J. Farmer
I nominate a grey-colored snake in the shape of the Visual Studio infinity logo. J From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guohui Xiao Sent: Wednesday, July 11, 2007 3:37 AM To: Discussion of IronPython Subject: Re: [IronPython] IronPython Logo / Icon good idea! On 7

[IronPython] What happends with AddAssembly ?

2007-07-11 Thread Luis Capra
PythonEngine had a method called AddAssembly in 2.0 A1, in 2.0 A2 doesnt exist. How can i import an assembly right now? Thnx. ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] "TypeError: Microsoft.Scripting.DynamicType is not callable" bug(?)

2007-07-11 Thread Dino Viehland
I could be asking the obvious but do square brackets work for you? I would expect: result=win32com.client.Dispatch("COMClass")["ItemName"] result=win32com.client.Dispatch("COMClass")[0] to work or possibly: result=win32com.client.Dispatch("COMClass").Item[0] Another possibility is selecting th

[IronPython] "TypeError: Microsoft.Scripting.DynamicType is not callable" bug(?)

2007-07-11 Thread Martin
Hi, *Background:* We have a number of Python scripts that we use for updating and setting up the devices my company make. We do this through calls to a number of COM classes via win32com.client.Dispatch(). We are interested in being able to call these Python scripts from various .NET GUI applica

Re: [IronPython] IronPython Logo / Icon

2007-07-11 Thread Guohui Xiao
good idea! On 7/11/07, Stefan Dobrev <[EMAIL PROTECTED]> wrote: Hi Guys, I had embedded IronPython 2.0 (DLR) in my WPF app. I have also created a WPF based console similar to the DLRConsole sample shipped with Silverlight 1.1 SDK. While I also creating a button to toggle the console window I

[IronPython] IronPython Logo / Icon

2007-07-11 Thread Stefan Dobrev
Hi Guys, I had embedded IronPython 2.0 (DLR) in my WPF app. I have also created a WPF based console similar to the DLRConsole sample shipped with Silverlight 1.1 SDK. While I also creating a button to toggle the console window I wanted to put an IronPython (or DLR) image in button content. After

Re: [IronPython] Kamaelia and IronPython (was: Hosting IronPython 2.X in .NET app)

2007-07-11 Thread M. David Peterson
On 7/11/07, M. David Peterson <[EMAIL PROTECTED]> wrote: Am playing with this now. In the mean time, one problem I ran into that requires the yet to be implemented nested yield statements in IP 2.0, IronPython 1.1 (1.1) on .NET 2.0.50727.42 > Copyright (c) Microsoft Corporation. All rights re

Re: [IronPython] Kamaelia and IronPython (was: Hosting IronPython 2.X in .NET app)

2007-07-11 Thread M. David Peterson
On 7/11/07, M. David Peterson <[EMAIL PROTECTED]> wrote: It's a powerful analogy, for sure! Right inline with the Smalltalk way of thinking about programming, something I truly appreciate. Come to think of it, the combination of Vista Smalltalk/DLR[1] + IronPython + Kamaelia + Silverlight (on

Re: [IronPython] Kamaelia and IronPython (was: Hosting IronPython 2.X in .NET app)

2007-07-11 Thread M. David Peterson
On 7/11/07, Michael Sparks <[EMAIL PROTECTED]> wrote: On Wednesday 11 July 2007 01:42, M. David Peterson wrote: > P2P audio streaming A *very* simplistic P2P streaming core written in an evening (last friday evening specifically) using Kamaelia can be found here: (really needs buffering, detect

Re: [IronPython] Hosting IronPython 2.X in .NET app

2007-07-11 Thread Sylvain Hellegouarch
Ken Manheimer a écrit : > On 7/10/07, *M. David Peterson* <[EMAIL PROTECTED] > > wrote: > > > On 7/10/07, *Sylvain Hellegouarch* < [EMAIL PROTECTED] > > wrote: > > > Not to worry :) > However the question stands, will Pyth