Re: [IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread Toni Alatalo
Vernon Cole kirjoitti: Make sure what data type is really being returned by part.getpayload() . Perhaps it is already in a suitable for when you get it? Before he posted to the list we actually talked about this on irc too, and it seemed that it was unicode. He was seeing type 'str', but it

Re: [IronPython] IronPython 2.6 RC 1 Release Hidden

2009-11-11 Thread Keith J. Farmer
"I told you so" in an underutilized but very powerful feature of any rapidly-changing technology. I think we should be making greater use of it. (No, it didn't count /g/) From: users-boun...@lists.ironpython.com on behalf of Michael Foord Sent: Wed 11/11/2009

Re: [IronPython] IronPython 2.6 RC 1 Release Hidden

2009-11-11 Thread Michael Foord
Michael Foord wrote: Keith J. Farmer wrote: While technically true -- I can't *stop* them -- I can tell them "I told you so" when support is rightfully removed. Yep, and that's the *only* advantage of hiding releases - you get to say I told you so. :-) Oh, plus you don't clutter the downloa

Re: [IronPython] IronPython 2.6 RC 1 Release Hidden

2009-11-11 Thread Michael Foord
Keith J. Farmer wrote: While technically true -- I can't *stop* them -- I can tell them "I told you so" when support is rightfully removed. Yep, and that's the *only* advantage of hiding releases - you get to say I told you so. :-) Michael I agree it *would* be better to advertise that suc

Re: [IronPython] IronPython 2.6 RC 1 Release Hidden

2009-11-11 Thread Keith J. Farmer
While technically true -- I can't *stop* them -- I can tell them "I told you so" when support is rightfully removed. I agree it *would* be better to advertise that such-and-such version is not tracked for long-term support, rather than rely on the implication that "RC" means as much, but I don

Re: [IronPython] IronPython 2.6 RC 1 Release Hidden

2009-11-11 Thread Michael Foord
Keith J. Farmer wrote: Well, perhaps because I don't see the upside in breaking things, either. Where I see an upside is in keeping people from taking inappropriate dependencies. :) You won't stop them taking dependencies on the latest released version (people are building stuff against I

Re: [IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread Vernon Cole
Make sure what data type is really being returned by part.getpayload() . Perhaps it is already in a suitable for when you get it? The Python 2.x language method of loading a binary blob of memory is to use the built in function "buffer" s = 'this is a string' b = buffer(s) "b" will be accepted m

Re: [IronPython] Embedding Python in MS-Office

2009-11-11 Thread Slide
You'd have to write an add-in for office that hosted the .NET runtime and provided a hosting API that IP could interact with. I don't think this would be a small undertaking. slide On Wed, Nov 11, 2009 at 12:12 PM, Joshua Kramer wrote: > > Hello, > > Does anyone have examples handy of how you mi

[IronPython] Embedding Python in MS-Office

2009-11-11 Thread Joshua Kramer
Hello, Does anyone have examples handy of how you might embed an IronPython script in MSO? For example, you might have a menu item that, when you select it, uses Python to aggregate data from outside sources and insert the data into a Word document or Excel cells. My end goal here is to m

Re: [IronPython] Help - Running IPY with .NET 3.5

2009-11-11 Thread Dave Fugate
Creating a file named ipy.exe.config alongside ipy.exe that looks similar to: will force IronPython to run against the given CLR runtime. Dave From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Brian Ushman (TT) Sent: Wednesday, Novem

[IronPython] IronPython 2.6 CodePlex Source Update

2009-11-11 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/61287. ADDED SOURCES $/IronPython/IronPython_Main/Src/IronPython/Runtime/CollectionDeb

Re: [IronPython] Fail to execute "import System" on Silverlight embedded interpreter

2009-11-11 Thread Michael Foord
Thanks for this Jimmy - looks like great progress. Michael Jimmy Schementi wrote: Kay, This are a couple bad bugs in the current sources; we desperately need to have better test coverage on embedding IronPython in a C# Silverlight app (hopefully I'll get time for that next month). In the mea

Re: [IronPython] Help - Running IPY with .NET 3.5

2009-11-11 Thread Michael Foord
Brian Ushman (TT) wrote: Thanks for your reply Michael. That makes sense that the clr has not changed. However, how would I have it load the newer .NET libraries instead of the 2.0 version. In my specific case I am trying to call the function "SequenceEqual" from the System.Array class. But i

Re: [IronPython] Help - Running IPY with .NET 3.5

2009-11-11 Thread Brian Ushman (TT)
Thanks for your reply Michael. That makes sense that the clr has not changed. However, how would I have it load the newer .NET libraries instead of the 2.0 version. In my specific case I am trying to call the function "SequenceEqual" from the System.Array class. But is says that this method doe

Re: [IronPython] Help - Running IPY with .NET 3.5

2009-11-11 Thread Michael Foord
Brian Ushman (TT) wrote: Hello to All, I am new to Python in general, but I have downloaded the latest release of IronPython. I am using Windows XP SP3 x64. Everytime I start IPY is says that it is using .NET 2.0, however I would like it to load with .NET 3.5. From what I have read on

Re: [IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread Michael Foord
matan keret wrote: hi, I have the following code which gets an image from an email. after getting it i need to pass it as a byteArray (byte[] in C#) to a C# function. i tried all sorts of things but no luck. I'm using ironPython 2.0.3 the important parts of the code are: # getting the ima

[IronPython] Help - Running IPY with .NET 3.5

2009-11-11 Thread Brian Ushman (TT)
Hello to All, I am new to Python in general, but I have downloaded the latest release of IronPython. I am using Windows XP SP3 x64. Everytime I start IPY is says that it is using .NET 2.0, however I would like it to load with .NET 3.5. From what I have read on the latest release of IPY, this

Re: [IronPython] clr.CompileSubclassTypes restrictions on list of types

2009-11-11 Thread Tom Wright
Thanks for the response. I've discovered the bug: I had clr.CompileSubclassTypes(name, listOfTypes) instead of clr.CompileSubclassTypes(name, *listOfTypes) Tom Dino Viehland wrote: The restrictions are per-subclass so for example you cannot inherit from both a list and tuple. The reason her

[IronPython] How to convert a 'str' type to byteArray

2009-11-11 Thread matan keret
hi, I have the following code which gets an image from an email. after getting it i need to pass it as a byteArray (byte[] in C#) to a C# function. i tried all sorts of things but no luck. I'm using ironPython 2.0.3 the important parts of the code are: # getting the image from the e-mail image =

Re: [IronPython] DataBinding and INotifyPropertyChanged in IronPython

2009-11-11 Thread Lukas Cenovsky
__setattr__ is not clean and easy readable piece of code. That's why I dive into decorators and create a *notify_property*: class notify_property(property): def __init__(self, getter): def newgetter(slf): #return None when the property does not exist yet try:

Re: [IronPython] Fail to execute "import System" on Silverlight embedded interpreter

2009-11-11 Thread Kay Schluehr
Jimmy Schementi schrieb: Kay, This are a couple bad bugs in the current sources; we desperately need to have better test coverage on embedding IronPython in a C# Silverlight app (hopefully I'll get time for that next month). In the meantime, here are fixed, unsigned binaries: http://github.c

Re: [IronPython] What's wrong with IronPython (UIAutomation)

2009-11-11 Thread Jozef
Thanks for your response. Solution to my problem is to first instantiate AutomationElement from dll, not from IronPython. Then all subsequent AutomationElement retrieved from IronPython looks ok. Jozef 2009/11/6 Shri Borde > In the past, there had been issues with UIAutomation as mentioned in

Re: [IronPython] Fail to execute "import System" on Silverlight embedded interpreter

2009-11-11 Thread Jimmy Schementi
Kay, This are a couple bad bugs in the current sources; we desperately need to have better test coverage on embedding IronPython in a C# Silverlight app (hopefully I'll get time for that next month). In the meantime, here are fixed, unsigned binaries: http://github.com/jschementi/orphanage/tre