IronPython是100%纯的Python变体吗? [英] Is IronPython a 100% pure Python variant?

查看:68
本文介绍了IronPython是100%纯的Python变体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从Python的站点下载了原始的Python解释器.我只是想学习这种语言,但首先,我想编写由任何RDBMS支持的基于Windows的独立应用程序.我想像任何典型的Windows安装程序一样捆绑它.

I just downloaded the original Python interpreter from Python's site. I just want to learn this language but to start with, I want to write Windows-based standalone applications that are powered by any RDBMS. I want to bundle it like any typical Windows setup.

我搜索了SO上的旧帖子,发现有人建议使用wxPython和py2exe.除了少数建议的IronPython,因为它是由.NET驱动的.

I searched old posts on SO and found guys suggesting wxPython and py2exe. Apart from that few suggested IronPython since it is powered by .NET.

我想知道IronPython是Python的纯变种还是修改后的变种.其次,Python的实际用途是什么?适用于PHP之类的东西还是C#(您可以对基于Windows的应用程序或Web进行编程).

I want to know whether IronPython is a pure variant of Python or a modified variant. Secondly, what is the actual use of Python? Is it for PHP like thing or like C# (you can either program Windows-based app. or Web.).

推荐答案

IronPython不是Python的变体,而是Python.它是基于.NET框架的Python语言的实现.所以,是的,它是纯Python.

IronPython isn't a variant of Python, it is Python. It's an implementation of the Python language based on the .NET framework. So, yes, it is pure Python.

IronPython已赶上CPython(您可能已经习惯的实现)2.6,因此在Python 2.7或3.x中看到的某些功能/更改将不会出现在IronPython中.此外,标准库也有所不同(但是,.NET提供的所有内容都将取代您丢失的内容).

IronPython is caught up to CPython (the implementation you're probably used to) 2.6, so some of the features/changes seen in Python 2.7 or 3.x will not be present in IronPython. Also, the standard library is a bit different (but what you lose is replaced by all that .NET has to offer).

IronPython的主要应用程序是编写用C#等编写的.NET应用程序的脚本,但它也可以独立使用. IronPython还可以用于使用SilverLight框架编写Web应用程序.

The primary application of IronPython is to script .NET applications written in C# etc., but it can also be used as a standalone. IronPython can also be used to write web applications using the SilverLight framework.

如果需要访问.NET功能,请使用IronPython.如果您只是想使Windows可执行文件,请使用py2exe.

If you need access to .NET features, use IronPython. If you're just trying to make a Windows executable, use py2exe.

要编写基本的RDBMS应用程序,只需使用CPython(原始Python),它的扩展性和速度就更快.然后,您可以使用多种工具将其单独安装在Windows PC上.不过,现在就只需要担心学习Python(如果您选择切换,这些技能通常会延续到IronPython上)并编写应用程序.

For writing basic RDBMS apps, just use CPython (original Python), it's more extensible and faster. Then, you can use a number of tools to make it stand alone on a Windows PC. For now, though, just worry about learning Python (those skills will mostly carry over to IronPython if you choose to switch) and writing your application.

这篇关于IronPython是100%纯的Python变体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆