我目前正在学习 Ironpython 并且很喜欢,但我希望继续使用 notepad++ 和 cmd.exe,并尝试使用更多汁的东西。
我最近了解到 Iron python Studio 不支持 Iron python 2,所以这让我的选择更加困难。
他们是否有任何适用于 windows 的 IDE 可以很好地进行铁 python 2 开发?
我目前正在学习 Ironpython 并且很喜欢,但我希望继续使用 notepad++ 和 cmd.exe,并尝试使用更多汁的东西。
我最近了解到 Iron python Studio 不支持 Iron python 2,所以这让我的选择更加困难。
他们是否有任何适用于 windows 的 IDE 可以很好地进行铁 python 2 开发?
SharpDevelop与IronPython 2.0 Beta 集成值得一看——尤其是考虑到它是免费的。
另外,看看这个Iron Python 2 - 你使用什么 IDE?讨论。似乎证实了您的信念,即“IronPython Studio 不支持 IronPython 2”。
注意:我最近写了一篇关于在 IronPython 中使用几个主要 IDE 的评论:http : //www.voidspace.org.uk/ironpython/tools-and-ides.shtml(包括 SharpDevelop、Eclipse 和 PyDev、Wing、Visual Studio 和 IronPython工作室)
我不是 IronPython Studio 的忠实粉丝,在我看来它并不是真正的生产质量。设计人员以 IronPython 1 为目标,生成的代码需要更改才能使用 IronPython 自行运行。不得不修改生成的代码从来都不是好事!
我使用带有 Visual Studio 的设计器来生成 C#,然后在 IronPython 中进行子类化以实际实现功能。
对于使用 IronPython,任何“普通”的 Python IDE 都可以。我喜欢 Wing,因为自动完成功能是我在 Python 编辑器中见过的最好的。您还可以教它为 .NET 库自动完成(通过生成 PI 文件)。
对于使用 Wing(Wing 个人版是免费的 - 但专业版更好),不要将项目设置中的解释器设置为 ipy.exe,因为您会丢失 Wing 内部的交互式 shell,这对于尝试非常有用。
这意味着您需要外部工具来运行测试、启动应用程序,但是使用 Wing 脚本 API 或操作系统工具将这些工具集成到 Wing 中很容易。
Komodo、SPE、Vim、Emacs 都是与 Python 集成的编辑器/IDE,并且都可以很好地工作——你喜欢哪种取决于你的品味和工作流程。
您对 IDE 有其他要求吗?
对于一般 IronPython 开发,我使用 MSBuild 来提供构建自动化,使用 Wix 来构建安装程序,Pyc(IronPython 编译器示例)来编译成二进制程序集,以及用于项目的自定义可执行文件,它是用 C# 编写的 IronPython 托管 API 的非常薄的包装器。编辑器/IDE 只是使用的工具之一——通用 Python IDE 应该可以很好地为您服务。
[1]:注意:我最近写了一篇关于在 IronPython 上使用几个主要 IDE 的评论http://www.voidspace.org.uk/ironpython/tools-and-ides.shtml
你可以试试ironpythonstudio Visual Studio shell。它似乎有点旧,可能需要重新构建才能与当前的 IronPython 版本一起使用。
边注:
在SO Podcast #50(2009 年 4 月 22 日)上,Steve Yegge提到了一个涉及 JavaScript IDE 的内部 Google 项目,并提到 Google 中的“Python 人群”很感兴趣。在遥远的未来,我们可能会看到一些来自 Google 的 (Iron)Python-capable IDE。
从成绩单,在标记 [21:37] 之后:
Yegge:代码导航。所以,我认为我们采用的 JavaScript 方法是我们将如何进行静态分析的模型,当我说“我们”时,我指的是行业——我们希望如何对语言进行静态分析比如 Perl 和 Python 和 Ruby 等等。事实上,这里的 Python 人群,当他们[看到]我在内部所做的事情时,他们就像“哦,我们希望 Python 在很大程度上做到这一点。” 所以...
The Python Tools for Visual Studio are a great choice, and they even support regular Python, Jython, and PyPy as well.
They have support for refactoring, debugging, code completion, and all sorts of other expected VS features. There's even a bunch of features for HPC development as well, as the tools are developed by Microsoft's Technical Computing Group.
检查“DIE”(用于 Davy 的 Ironpython 编辑器)。这是一个开源项目。一个整洁的 IronPython 代码编辑器,具有一些基本的 IDE 功能: http ://code.google.com/p/davysironpythoneditor/
我用emacs。不完全是!
如果您已经使用 emacs 并且想从 python 模式使用 IronPython,我在另一个 stackoverflow 问题中描述了该过程。我使用 emacs+IronPython 开发 Office 自动化和各种其他 .NET 实用程序脚本。
Apparently Jetbrains' PyCharm will support IronPython.... have not tried it yet myself but Jetbrains make good stuff.
The implementation of the sys module was improved so that you can now utilize CPython’s pdb module in basic scenarios to debug IronPython sessions provided you pass the –X:Frames or –X:FullFrames options to ipy.exe