tag:blogger.com,1999:blog-3670533090196500837.post7149503276536691676..comments2024-03-19T00:15:59.773-07:00Comments on metapython: What if called functions could access the variables from the caller?jsbuenohttp://www.blogger.com/profile/08952047232699213114noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3670533090196500837.post-71256785363230751272010-11-06T14:31:57.061-07:002010-11-06T14:31:57.061-07:00In jython it works.
In IronPython, 2.6.2, I forwa...In jython it works.<br /><br />In IronPython, 2.6.2, I forward some steps, but don't achive the goal :-/<br /><br />To use the currentframe we need to pass the -X:FullFrames argument.<br /><br />c:\>ipy.exe -X:FullFrames<br />>>> from inspect import currentframe<br />>>> currentframe(0)<br /><frame object at 0x000000000000002B><br /><br />But in IronPython the FunctionType raise the NotImplementedError.<br /><br />[],Luciano Pachecohttps://www.blogger.com/profile/16055965161943164150noreply@blogger.comtag:blogger.com,1999:blog-3670533090196500837.post-66615645177624209962010-11-06T07:01:00.045-07:002010-11-06T07:01:00.045-07:00Funciona no jython! :-)
No IronPython não tem o m...Funciona no jython! :-)<br /><br />No IronPython não tem o módulo inspect:<br />"""<br />IronPython.Runtime.Exceptions.ImportException: No module named inspect<br /> at Caller.Call<br /> at BuiltinFunctionCaller.Call5<br /> at System.Dynamic.UpdateDelegates.UpdateAndExecute7<br /> at IronPython.Runtime.Importer.Import<br /> at IronPython.Runtime.Operations.PythonOps.InitializeModule<br /> at PythonMain.Main<br />"""Luciano Pachecohttps://www.blogger.com/profile/16055965161943164150noreply@blogger.com