[IronPython] Silverlight 4 and RichTextBox

2010-04-12 Thread Michael Foord
Hello all, I'm trying to use the new RichTextBox from Silverlight 4 with IronPython. I have IronPython 2.6.1 RC and Silverlight 4 RC installed (Windows). It fails with a SystemError: Specified method is not supported when instantiating the RichTextBox. The code is: from System.Windows

Re: [IronPython] Silverlight 4 and RichTextBox

2010-04-12 Thread Michael Foord
On 12/04/2010 13:33, Michael Foord wrote: Hello all, I'm trying to use the new RichTextBox from Silverlight 4 with IronPython. I have IronPython 2.6.1 RC and Silverlight 4 RC installed (Windows). It fails with a SystemError: Specified method is not supported when instantiating the

Re: [IronPython] IronPython 2.6.1 for .NET 4.0 RC targeting Silverlight

2010-04-12 Thread David Matson
Jimmy, I'm having trouble finding the source code for the 2.6.1 .NET 4.0 release on Codeplex. Can you point me to it? Thanks. On Sat, Apr 10, 2010 at 2:22 PM, Jimmy Schementi jimmy.scheme...@microsoft.com wrote: To embed IronPython (CLR2 SL build) in a Silverlight 4 app, you have to add a

Re: [IronPython] IronPython.Runtime.Types.PythonType Is not marked as Serializable Exception

2010-04-12 Thread Dino Viehland
Sorry for the delay - I was taking a couple of days off last week and I didn't get a chance to respond before disappearing. The problem here is that you're trying to return the objects from the remote domain into the local domain. ObjectOperations actually has a set of overloads which take

[IronPython] Building via AST

2010-04-12 Thread Justin Chase
Suppose I would like to build an AST programmatically and compile that into an assembly dynamically (meaning an assembly flagged with RunAndCollect) from C#. How would I do that with IronPython's help? I do not what to author Python code and compile that I would like to just deal directly with the

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
Nope – the DLR doesn’t have any support for building .NET types – dynamic or otherwise. If you’d like to just build an object which behaves dynamically I’d suggest looking at DynamicObject. You can just subclass it and override various Try* methods and you’ll have a dynamic object. If you

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
Ok so I'm wondering if I'm perhaps using the wrong words to try to say what I mean. Because when I look into the IronPython source code I see a class called Microsoft.Scripting.Generation.TypeGen ( http://ironpython.codeplex.com/SourceControl/changeset/view/65328#1011039). Which appears to be code

[IronPython] Announcing IronPython 2.6.1

2010-04-12 Thread David DiCato
Hello Python Community, We're pleased to announce the final release of IronPython 2.6.1. This version of IronPython makes great strides in stability and compatibility, including a considerable number of targeted bugfixes. This is our largest servicing release to date, and with your help both

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
Yes – there is the TypeGen class but really it’s just a thin wrapper around TypeBuilder w/ some helper APIs. If we were to implement it today it might just be extension methods instead of a wrapper class. Unfortunately there is currently no way to go from an expression tree to an instance

[IronPython] Update to the World's Worst Paint Program Sample

2010-04-12 Thread Dave Fugate
A newer version of Dino's World's Worst Paint Program sample has just been uploaded to the 2.6.1 download page as (Sample) BadPaint.ziphttp://ironpython.codeplex.com/releases/view/36280#DownloadId=116523. This sample shows how to utilize the DLR/IronPython hosting APIs to manipulate the

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
Ok, so at risk of being a nuissance I have one last question because I feel like I'm half way there. I have the following example that seems to work: # sample.py from ConsoleApplication4 import IExample class Example(IExample): test = hello python def Do(self): return self.test # program.cs

Re: [IronPython] Building via AST

2010-04-12 Thread Dino Viehland
This might be possible. If you wrap this all up in a PythonAst object (calling the constructor which takes a CompilerContext), call Bind on it then you should get a LambdaExpression back out. You can Compile() on that. But it’s not like this is well traveled territory and this only applies to

Re: [IronPython] Building via AST

2010-04-12 Thread Justin Chase
Awesome. I will thanks. On Apr 12, 2010 7:49 PM, Dino Viehland di...@microsoft.com wrote: This might be possible. If you wrap this all up in a PythonAst object (calling the constructor which takes a CompilerContext), call Bind on it then you should get a LambdaExpression back out. You can

[IronPython] 2.6.1 implements ssl module, but it crash...

2010-04-12 Thread qiuyingbo
import imaplib c = imaplib.IMAP4_SSL('imap.sohu.com', 993) c.login(myusername, mypassword) ipy.exe memory footprint increase to 170M... and crash soon. 2.6.1 and 2.6.1with.NET4 has the same problem ___ Users mailing list Users@lists.ironpython.com