问题描述
IronPython是否已经到了可以将其替换为CPython的地步?
Has IronPython gotten to a point where you can just drop it in as a replacement for CPython?
为了澄清:我的意思是IronPython可以运行最初为CPython编写的应用程序(当然不涉及.NET)
To clarify: I mean can IronPython run applications originally written for CPython (no .NET involved, of course)
推荐答案
是的,至少在下面带有"real"(微软).NET的Windows上是.如果您使用的是C编码的扩展程序,则 ironclad 可能会帮助您摆脱困境;您将获得2.6支持,几乎每个CPython标准库或第三方扩展模块(对于Fortran或C ++编码的模块来说可能都不小,但这是少数),当然还有地球上的每个.NET模块-不是不好的权衡!
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!
与MacOSX或Linux上的Mono配合使用的效果如何是另一个问题...
How well this works with Mono on MacOSX or Linux is a different issue...
这篇关于IronPython可以替代CPython吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!