`
huangyiiiiii
  • 浏览: 117569 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论

compatibility of IronPython

阅读更多
IronPython 1.0 的发布,在邮件列表中引起了很多争论 ,有的人担心 IronPython 会污染了 CPython 标准的纯洁,也有人希望 IronPython 的兴起会给 Python 社区注入新的力量。
而在我看来,这些争论归根到底,就是一个兼容性的问题。在 .net 程序员看来,它是 IronPython 和 .net 的兼容性,和其它 .net 程序的互操作性如何;而在 python 程序员看来,它就是 IronPython 和 CPython 的兼容性了,和 其它 python 程序互操作性如何。

在 IronPython 与 CPython 2.4.3 的兼容性问题上,有这么一份详细的比较文档 官网下载 啄木鸟下载 。其中除了众多细小的区别外,在我看来比较重要的几点有:

Some CPython built-in extension modules do not exist in IronPython:

_bisect

_codecs_hk

audioop

_multibytecodec

parser

array

msvcrt

_codecs_kr

_heapq

_codecs_jp

imageop

mmap

_subprocess

_codecs_tw

regex

 

zipimport

xxsubtype

_codecs_cn

md5

_codecs_iso2022

rgbimg

_csv

signal

_hotshot

sha

cmath

_symtable

_winreg

strop


The doctest module does not run in IronPython.
IronPython doesn’t support the select module.
IronPython has no os.system function.

看来库的问题还是最大的,而且 CPython 中除了标准库还要那么多第三方的“事实上"的标准库!况且 .net 本身有那么一个庞大的库资源(包括官方的、第三方的等等),也没有必要非得使用 CPython 的标准库了。

不管兼容问题如何,我都不同意所谓 IronPython 污染 Python 之类的说法。是说 IronPython 会让 本来的 python 程序员转向 IronPython 从而导致 Python 社区的分离吗?不管 IronPython 和 CPython 在语法上是如何的接近,让一个不了解 .net框架的 CPython 程序员转向 IronPython ,其难度怎么也算得上是学习半个语言了。因为这就是 .net ,.net框架 对多语言支持好,但实际上众多语言写出的 .net 程序都是一个模子里出来的。
所以 python 程序员的选择应该是很明确的:如果你需要在 .net框架下工作,那 IronPython 是你的不二选择,否则,就完全没有必要使用 IronPython 了,使用 CPython 还有个跨os平台的优势,何乐而不为呢。

至于 IronPython 和 .net 之间的问题应该不大,不是很清楚,也不想做评论。
分享到:
评论

相关推荐

    TL 81000 Electromagnetic Compatibility of Electronic Component

    "TL 81000 Electromagnetic Compatibility of Electronic Component" TL 81000 Electromagnetic Compatibility of Electronic Component是德国大众汽车集团(Volkswagen Group)发布的一项技术标准,旨在确保汽车...

    TL 81000-2021 Electromagnetic Compatibility of Electronic Compon

    TL 81000-2021 Electromagnetic Compatibility of Electronic Components for Motor Vehicles

    Modeling and Design of Electromagnetic Compatibility for High-Speed Printed epub

    Modeling and Design of Electromagnetic Compatibility for High-Speed Printed Circuit Boards and Packaging 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊...

    Application Compatibility Toolkit 5.5

    可以通过微软自己的Microsoft Application Compatibility Toolkit 5.5将信任程序加入系统白名单。使用方法: 1. 安装后得到三个程序,我们需要使用管理员权限启动Compatibility Administrator; 2. 在Custom ...

    Comparisons of STM32 Series, Compatibility of F1, F2 and F4

    STM32系列是意法半导体(STMicroelectronics)推出的一款基于ARM Cortex-M内核的微控制器,被广泛应用在各种嵌入式系统设计中。本文将深入探讨STM32的F1、F2和F4系列之间的兼容性差异,以及它们各自的特点,为STM32...

    Android 7.0 Compatibility List

    3.1. Managed API Compatibility 3.1.1. Android Extensions 3.2. Soft API Compatibility 3.2.1. Permissions 3.2.2. Build Parameters 3.2.3. Intent Compatibility 3.2.3.1. Core Application Intents 3.2.3.2. ...

    Android 4.0 Compatibility Definition

    This section details the software aspects of compatibility for Android 4.0, including managed APIs, soft APIs, native APIs, web compatibility, API behavioral compatibility, and more. ##### 3.1 ...

    Pro Python 2nd edition 英文pdf

    Even if you know enough to be productive, there are a number of features that can take you to the next level in Python. Pro Python, Second Edition explores concepts and features normally left to ...

    python高级编程第二版(完整文字版)Page:499

    IronPython14 PyPy15 ModernapproachestoPythondevelopment16 Application-levelisolationofPythonenvironments17 Whyisolation?19 Popularsolutions21 virtualenv21 venv23 buildout24 Whichonetochoose 共499页

    Python 2 and 3 compatibility utilities

    它提供实用函数来消除 Python 版本之间的差异,目的是编写在两个 Python 版本上兼容的 Python 代码。 有关所提供内容的更多信息,请参阅文档。 六个支持 Python 2.7 和 3.3+。 它只包含在一个 Python 文件中,因此...

    The study on hemo-compatibility of hydrophilic and hydrophobic SiCOH plasma coating

    等离子体沉积亲/疏水性SiCOH膜层血液相容性研究,王贵学,张勤,采用低温等离子沉积技术在Si片表面沉积SiCOH膜层,等离子体反应单体为三甲基硅烷(trimethylchlorosilane,TMS)和氧气。通过控制TMS与O2的流

    Electromagnetic Compatibility Principles and Applications.

    《电磁兼容原理与应用》是一本深入探讨电磁兼容(Electromagnetic Compatibility,简称EMC)领域的专业教材。在现代电子设备日益复杂的环境下,理解和掌握EMC的知识变得至关重要,因为这直接影响到设备的正常运行和...

    flink-hadoop-compatibility_2.11-1.10.0-API文档-中文版.zip

    赠送jar包:flink-hadoop-compatibility_2.11-1.10.0.jar; 赠送原API文档:flink-hadoop-compatibility_2.11-1.10.0-javadoc.jar; 赠送源代码:flink-hadoop-compatibility_2.11-1.10.0-sources.jar; 赠送Maven...

    Python GUI Programming Cookbook.pdf

    It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Its flexible syntax enables developers to write short scripts ...

    Python For ArcGIS 数据

    Your task is to clean the data, reformat the fi le for GIS compatibility, and summarize the data by determining what percent of the native Bird Species appear in the inventory and map the results....

    Python Cookbook 3rd 原版PDF by Beazley & Jones

    Since 2008, the Python world has been watching the slow evolution of Python 3. It was always known that the adoption of Python 3 would likely take a long time. In fact, even at the time of this ...

Global site tag (gtag.js) - Google Analytics