Re: [IronPython] n-dimensional array

2009-11-15 Thread Aravin
Thank you Michael for your quick response. I started to write my own implementation of an n-dimensional array. Currently I have only implemented __getitem__. You can pass in slice like in numpy. E.g. >>>from IronMath import ndarray >>>a = ndarray(range(36), (6,6)) >>>print a [[0,1, 2,

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread Tony Meyer
> you are right, the _ssl module is a problem and I > don't know how to work around that Using the pre-2.6 module would have been the only way to work around it (i.e. work with the old socket methods). Since that doesn't work even in 2.6, then my guess would be that you'll just have to wait until

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
I tried that as well :-) you are right, the _ssl module is a problem and I don't know how to work around that (don't know that much about py). also tried to use it in IP 2.0.3 but the implementation is different and I'll need to dig much more in that to make it work. Which is not my main goal right

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread Tony Meyer
> You might be surprised but IP 2.6 doesn't support SSL protocols at all :-( Ah, I'd forgotten about that. It's because of the changes that CPython 2.6 made. My suspicion is that you could use the CPython 2.5 poplib module with IP 2.6, though - it's not that SSL stopped working, it's that the _s

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
Hi again, > Just a warning: you included your username and password with your code > you should probably immediately change your password. It's OK this is a mail box for testing only so nothing to worry about, there is nothing there :-) > If you start up an IP shell and just do this (and 'import

Re: [IronPython] Embedding IronPython in MS-Office (fwd)

2009-11-15 Thread Slide
I think Office is tied to ActiveScripting which is COM based. I am not sure any ActiveScripting language will work either, they may have it tied directly to VBA as was said earlier. On Sun, Nov 15, 2009 at 8:16 AM, Curt Hagenlocher wrote: > VBA is embedded pretty tightly into Word and Excel; ther

Re: [IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread Tony Meyer
Hi, > user = "matan...@hotmail.com" > pwd = "" Just a warning: you included your username and password with your code - you should probably immediately change your password. > server = poplib.POP3_SSL(host) If you start up an IP shell and just do this (and 'import poplib'), does that ca

[IronPython] poplib.POP3_SSL OutOfMemory Issue

2009-11-15 Thread matan keret
Hi everyone! i wrote the next code which suppose to go to my hotmail account, fetch the last email's image attachment and save it to a file: import email, poplib, os, string def get_messages_id(message_list): items = [] for message in message_list[1]: message_parts = string.split

Re: [IronPython] Embedding IronPython in MS-Office (fwd)

2009-11-15 Thread Curt Hagenlocher
VBA is embedded pretty tightly into Word and Excel; there's no way to swap it out for another scripting engine. On Sun, Nov 15, 2009 at 8:40 AM, Joshua Kramer wrote: > > A while back, Slide wrote: > > "You'd have to write an add-in for office that hosted the .NET runtime and > provided a hosting

Re: [IronPython] Embedding IronPython in MS-Office (fwd)

2009-11-15 Thread Joshua Kramer
A while back, Slide wrote: "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." Hmm. Is there any way to have MSO "see" IPY as a Scripting or Macro Language, like it s