【问题标题】:How can I use –X:Frames in Ironpython?如何在 Ironpython 中使用 –X:Frames?
【发布时间】:2011-03-05 22:00:07
【问题描述】:

Visual Studio 2010 + Ironpython for .net4

我想在 Ironpython 中使用 numpy,他们说我必须使用框架支持。 所以,我应该在命令行上使用 -X:Frames 或 -X:FullFrames 运行 ipy。

但是,我有两个问题: 1.如何在 Ironpython 交互控制台中使用 -X:Frames 或 -X:FullFrames?

2.如果我使用 C# 4 加载包含 numpy 的 py,如何使用外部参数,如 -X:Frames 或 -X:FullFrames?

非常感谢。

【问题讨论】:

    标签: c# command-line ironpython frames interactive


    【解决方案1】:
    1. 适用于 Visual Studio 的 IronPython 工具已被适用于 Visual Studio 的 Python 工具弃用(请参阅 http://pytools.codeplex.com)。在 VS 2010 中使用 Python 工具:打开 Tools=>Options=>Python Tools=>Interpreter Options 并将“-X:FullFrames”添加到“Interactive Window Options”字段。

    2. 当您通过 IronPython.Hosting.Python.CreateEngine 创建 IronPython 引擎时,请使用接受 Dictionary 的重载。此字典参数需要将 FullFrames 键设置为 truePerformance of Mass-Evaluating Expressions in IronPython 会告诉你如何做到这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-17
      • 2019-11-23
      相关资源
      最近更新 更多