Is IronPython usable as a replacement for CPython?

前提是你 提交于 2019-12-10 17:18:49

问题


Has IronPython gotten to a point where you can just drop it in as a replacement for CPython?

To clarify: I mean can IronPython run applications originally written for CPython (no .NET involved, of course)


回答1:


Yes, pretty much, at least on Windows with "real" (Microsoft) .NET underneath. If you're depending on C-coded extensions, chances are that ironclad can bail you out; you get 2.6 support, just about every CPython standard library or third-party extension module (maybe not trivial for those coded in Fortran, or C++, but that's a minority), plus of course every .NET module on the planet -- not a bad tradeoff!

How well this works with Mono on MacOSX or Linux is a different issue...




回答2:


It has been tested to work well with mono on Linux and I use it regularly to open up opportunities to use - as Alex Martelli so eloquently put it - "every .NET module on the planet".

I have faced some troubles in accessing third party extension modules, but that has pretty much always been a path issue, which is easy to correct.

I don't know how well this works on a Mac, though.




回答3:


Ironpython have some prolbems to replace the cpython,like Base on cpy, you can use some libs directly, but, in ipy, you must use ironclad, and the effiencency is insufferable. And, if you want use py files, there will be many errors, even if you use same gramma. So, there are two different things, only same gramma.

Its only the merit is to be load by .net easily.



来源:https://stackoverflow.com/questions/1905023/is-ironpython-usable-as-a-replacement-for-cpython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!