This will should be fixed in tomorrow's source drop. I have a check-in which removes sys._getframe unless the -X:Frames or -X:FullFrames options are passed. When one of those are passed sys._getframe works for any value and if -X:FullFrames is passed then you can get locals from the frames too. But the removal of sys._getframe by default will mean that namedtuple from collections.py no longer blows up.
I don't think we have a module status page yet. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Davy Mitchell Sent: Wednesday, May 13, 2009 1:58 PM To: Discussion of IronPython Subject: Re: [IronPython] Inspect Module Thanks for the info and update Dave. Is there a page on codeplex for the 2.6 modules status? The 2.01 version of inspect seems to work ok so far in 2.6 so will do for now :-) Thanks, Davy Mitchell -- Davy Stuff - http://daftspaniel.blogspot.com Geeky Stuff - http://daftpython.blogspot.com Davy's Ironpython Editor - http://code.google.com/p/davysironpythoneditor/ On Wed, May 13, 2009 at 5:11 PM, Dave Fugate <[email protected]> wrote: > It's because we strip out CPython modules that aren't importable by ipy. That > is, the sys._getframe issue I talked about at > http://knowbody.livejournal.com/13271.html is the underlying culprit here: > C:\Program Files\IronPython 2.6>ipy.exe > IronPython 2.6 Alpha 1 (2.6.0.1) on .NET 2.0.50727.3053 > Type "help", "copyright", "credits" or "license" for more information. > >>> import inspect > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Program Files\IronPython 2.6\Lib\inspect.py", line 262, in > inspect > File "C:\Program Files\IronPython 2.6\Lib\collections.py", line 106, in > namedtuple > ValueError: _getframe is not implemented for non-zero depth > >>> > > We should have this fixed in one form or another before the final version of > 2.6 ships. > > Dave > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Davy Mitchell > Sent: Tuesday, May 12, 2009 10:12 PM > To: Discussion of IronPython > Subject: [IronPython] Inspect Module > > Hi Folks, > > Is there a reason why Inspect is missing from the 2.6 msi? It is > present in 2.01. > > Thanks, > Davy Mitchell > > http://daftspaniel.blogspot.com > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
