如何在IronPython 2.6.1中启用sys._getframe? [英] How can I enable sys._getframe in IronPython 2.6.1?

查看:99
本文介绍了如何在IronPython 2.6.1中启用sys._getframe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用一个需要sys._getframe()的模块,据我所知,默认情况下未启用该模块.我已经看到了很多资料,这些资料表明有一种方法可以启用_getframe(),但是我还没有找到任何可以告诉我如何启用_getframe()的方法.在IronPython 2.6.1中启用此功能的正确方法是什么?甚至存在吗?预先感谢.

I'm trying to use a module that requires sys._getframe(), which, as I understand it, is not enabled by default. I've seen a lot of material that suggests that there is a way to enable _getframe(), but I've yet to find anything that tells me how to do so. What is the proper method for enabling this function in IronPython 2.6.1? Does one even exist? Thanks in advance.

推荐答案

已解决.原来,您需要使用命令行选项–X:Frames或–X:FullFrames从源代码重建IronPython.

Resolved. Turns out that you need to rebuild IronPython from source, with the command line options –X:Frames or –X:FullFrames.

这篇关于如何在IronPython 2.6.1中启用sys._getframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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