Re: [cx-freeze-users] Different between IronPython and Pyhton?
Brought to you by:
atuining
From: Thomas K. <ta...@gm...> - 2013-09-20 18:07:16
|
On 20 September 2013 02:21, Michael Whapples <mwh...@ai...> wrote: > * IronPython I believe still is based on the 2.7.x version of the python > language. If they have got a Python 3.x version of IronPython, it typically > will be a little behind the C Python version. > Yep, that's right. It looks like there's a 3.x version planned to be released next spring: http://blog.jdhardy.ca/2013/06/ironpython-3-todo.html > * Different ways of implementing threading. CPython uses a GIL where as > IronPython does not. > * If you want to access native code then IronPython only has ctypes, > CPython has both ctypes and extensions (whether you write them directly in > C or using something like cython/pyrex or swig). > IronPython can also interface with .NET... thingies. I think they're called assemblies. Anyway, .NET probably has its own ways of accessing native code, which I presume you could use in IronPython. > It is worth noting you might be able to write code which works on either > IronPython or CPython. > Definitely! In fact, so long as you're not doing things with native code, most Python code should work in standard Python, IronPython, Jython or PyPy, so long as you're writing for the same version of the Python language. In the Python docs, look out for bits that say 'CPython implementation detail' - these won't work on other interpreters. Thanks, Thomas |