Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Dino Viehland
That's actually only an incompatibility w/ marshal, not pickle. Functions are always pickled by reference (module name + function name) and if you try and pickle a code object directly it fails: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "cop

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Lucas Vickers
lol thanks :) Well this I can deal with. I'll make a communication method that takes a pickled object, and as a response slightly modifies the object then re-pickles it. I can then more or less confirm nothing is corrupt. I won't be dealing with unicode / ascii text, mostly numbers (3d structur

Re: [Ironpython-users] IronPython debugging on OS X

2012-02-22 Thread Steve Baer
Hi Lucas, If this question is targeted toward Rhino3d, the Windows version has a script debugger built in. I haven’t had the time to put anything together for the OSX implementation; and I really want to see if I can figure out how to get python remote debugging working so you can use tools lik

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Dino Viehland
I’m not sure there’s much to worry about with pickle. I think the biggest issue is that in IronPython we’ll serialize strings as Unicode where CPython would serialize them as ASCII strings. Once they’re deserialized though everyone should treat them (mostly) the same. I use pickle to store th

Re: [Ironpython-users] IronPython debugging on OS X

2012-02-22 Thread Dino Viehland
If you're down w/ Eclipse PyDev supports IronPython debugging. From: [email protected] [mailto:[email protected]] On Behalf Of Lucas Vickers Sent: Wednesday, February 22, 2012 1:44 PM To: [email protected] Subj

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Jeff Hardy
On Wed, Feb 22, 2012 at 2:28 PM, Lucas Vickers wrote: > Rhino3d uses IronPython to let us control low level .net Rhino APIs using > python. Super cool. But what about pickle do u need to watch out for? Pickled code objects. - Jeff ___ Ironpython-users

Re: [Ironpython-users] IronPython debugging on OS X

2012-02-22 Thread Jeff Hardy
On Wed, Feb 22, 2012 at 1:44 PM, Lucas Vickers wrote: > Hello, > > I'm trying to find some information on what debugging capabilities exist for > IronPython.  I read in depth about the mono level debugger, but this is > probably too low level for what I want. > > I also found some mention of work

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Lucas Vickers
Lol now you're scaring me ;) Rhino3d uses IronPython to let us control low level .net Rhino APIs using python. Super cool. But what about pickle do u need to watch out for? Due to the Rhino infrastructure it seems difficult to impossible to really debug an IronPython script hosted within rhino,

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Slide
Be careful with that too :-) IronPython is obviously still a work in progress and we're trying hard to implement features and become more CPython compatible; we've still got a lot of work to do, but you can do some really cool stuff with IronPython. slide On Wed, Feb 22, 2012 at 3:06 PM, Lucas V

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Lucas Vickers
Got it. Makes more sense. Sounds like I'll be pickling objects back and forth between cpy and ipy. Thanks On Feb 22, 2012, at 5:03 PM, Slide wrote: > If the module is a C based module, it will not import into IronPython. The > compatibility is in most of the standard library, pycurl is not

Re: [Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Slide
If the module is a C based module, it will not import into IronPython. The compatibility is in most of the standard library, pycurl is not part of the standard library. There are even issues in parts of the standard library as you can see if you look at the bug tracker on CodePlex. slide On Wed,

[Ironpython-users] IronPython debugging on OS X

2012-02-22 Thread Lucas Vickers
Hello, I'm trying to find some information on what debugging capabilities exist for IronPython. I read in depth about the mono level debugger, but this is probably too low level for what I want. I also found some mention of work being done on Windows specific IronPython debuggers, but I am hopin

[Ironpython-users] Understanding CPython and IronPython linkage

2012-02-22 Thread Lucas Vickers
Hello, I am OS X and I am working with a pre-compiled version of IronPython (it is hosted by Rhino 3d to be specific). I am attempting to import standard CPython libraries, such as pycurl. I am confused as the FAQ states compatibility between IronPython 2.7 and CPython 2.7, but using the followi

Re: [Ironpython-users] Pyc.py dependencies

2012-02-22 Thread Jeff Hardy
On Wed, Feb 22, 2012 at 11:22 AM, Slide wrote: > The icon has to be part of unmanaged resources, which can be defined using > DefineUnmanagedResource, but that function expects a compiled resource file, > not a .ico file. So, I have to generate the compiled resource file from the > .ico file to em

Re: [Ironpython-users] Pyc.py dependencies

2012-02-22 Thread Slide
The icon has to be part of unmanaged resources, which can be defined using DefineUnmanagedResource, but that function expects a compiled resource file, not a .ico file. So, I have to generate the compiled resource file from the .ico file to embed as the unmanaged resource. Unless I am completely mi

Re: [Ironpython-users] Pyc.py dependencies

2012-02-22 Thread Jeff Hardy
On Wed, Feb 22, 2012 at 9:44 AM, Slide wrote: > Currently pyc.py only uses .NET imports and classes, I'm looking at adding > support for an embedded icon and win32 (native) resources in general. Are > people opposed to adding a dependency on the struct module, or ctypes to > accomplish that stuff?

[Ironpython-users] Pyc.py dependencies

2012-02-22 Thread Slide
Currently pyc.py only uses .NET imports and classes, I'm looking at adding support for an embedded icon and win32 (native) resources in general. Are people opposed to adding a dependency on the struct module, or ctypes to accomplish that stuff? Thanks, Slide __