[IronPython] 2.6 Beta 1 Bug: help() requires _getframe support which is now optional
With 2.6 beta 1 and without -X:frames: help() Traceback (most recent call last): File stdin, line 1, in module File C:\Program Files\IronPython 2.6\Lib\site.py, line 428, in __call__ File C:\Program Files\IronPython 2.6\Lib\pydoc.py, line 53, in C:\Program Files\IronPython 2.6\Lib\pydoc.py File C:\Program Files\IronPython 2.6\Lib\inspect.py, line 950, in C:\Program Files\IronPython 2.6\Lib\inspect.py AttributeError: 'module' object has no attribute '_getframe' This is now item 22640 on CodePlex. Mike ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
[IronPython] Performance of dir
Hello all, On IronPython 2.0.1 the last line of this code takes ~4 seconds the first time it is executed: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import * dir(Form) Form.__dict__.keys() (which for a .NET type is equivalent) takes ~1 second or less. What extra work is dir doing? (Is it pulling in the xml docstrings?) Thanks Michael -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Re: [IronPython] Performance of dir
Michael Foord wrote: Hello all, On IronPython 2.0.1 the last line of this code takes ~4 seconds the first time it is executed: import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import * dir(Form) Form.__dict__.keys() (which for a .NET type is equivalent) takes ~1 second or less. What extra work is dir doing? (Is it pulling in the xml docstrings?) Actually they're not equivalent, my bad: len(Form.__dict__) 287 len(dir(Form)) 540 Michael Thanks Michael -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com