How can I enable sys._getframe in IronPython 2.6.1?

一笑奈何 提交于 2019-12-12 05:02:00

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/3780379/how-can-i-enable-sys-getframe-in-ironpython-2-6-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!