[Ironpython-users] Understanding CPython and IronPython linkage

Lucas Vickers lucasvickers at gmail.com
Wed Feb 22 23:28:17 CET 2012


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, so tracing low level bugs will be a nightmare. 

On Feb 22, 2012, at 5:09 PM, Slide <slide.o.mix at gmail.com> wrote:

> 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 Vickers <lucasvickers at gmail.com> wrote:
> 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 <slide.o.mix at gmail.com> 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 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, Feb 22, 2012 at 2:43 PM, Lucas Vickers <lucasvickers at gmail.com> wrote:
>> 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 following code which works on CPython 2.7.2 fails on IronPython 2.7.0.
>> 
>> sys.path[0:0] = [ '/Users/lucasvickers/.virtualenvs/rhino/lib/python2.7/site-packages' ]
>> import pycurl
>> 
>> It claims no module pycurl.  A little more reading shows attempts to allow linkage between IronPython and CPython such as ironclad (http://code.google.com/p/ironclad/ ), but then why the claimed compatibility in the first place?
>> 
>> Can anyone help me understand?  thanks
>> 
>> Lucas
>> 
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users at python.org
>> http://mail.python.org/mailman/listinfo/ironpython-users
>> 
>> 
>> 
>> 
>> -- 
>> Website: http://earl-of-code.com
> 
> 
> 
> -- 
> Website: http://earl-of-code.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120222/abec210b/attachment.html>


More information about the Ironpython-users mailing list