Re: [IronPython] Monkey-patching CLR types

2010-02-16 Thread Jimmy Schementi
Dino Viehland wrote: If you strongly type handler to a delegate type IronPython should convert the function to the delegate type on the call. Unfortunately it doesn't seem to :(. I repro'd that it doesn't on the desktop as well as in Silverlight; here's a desktop repro: import clr

[IronPython] IronPython 2.6 CodePlex Source Update

2010-02-16 Thread merllab
This is an automated email letting you know that sources have recently been pushed out. You can download these newer sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/64019. ADDED SOURCES $/IronPython/IronPython_Main/Src/Tests/stress

[IronPython] Using a C# class in IronPython

2010-02-16 Thread Justin Hartman
Hi all, I've been using IronPython (and IronRuby) for about a year for a project at work, and I'm thrilled with them both! I encountered something strange today and was hoping someone could shed some light on it. I was attempting to set a property on an instance of a class which is defined in

Re: [IronPython] How can I exit from Python Script File?

2010-02-16 Thread Mark Grice
Michael Foord fuzzy...@voidspace.org.uk Wrote: That will throw a SystemExit exception. You can have exception handling in your C# that catches this specific error. Doh! Yeah... should have checked that. I just didn't figure calling sys.Exit() was a code exception, so I thought it was something

Re: [IronPython] Monkey-patching CLR types

2010-02-16 Thread Jimmy Schementi
By the way, I fixed this by just overloading the + operator the normal way C# operators are overloaded, had it accept object on the right-hand-side so Python functions would make their way into it, and then used ObjectOperations.ConvertTo to convert the Python function to a