On Thu, May 24, 2012 at 9:33 AM, Matt Anderson <[email protected]> wrote:
> Apparently, this was an error in rope that was fixed here > > https://bitbucket.org/agr/rope/issue/15/crashes-with-attributeerror > > However, it would appear that this fix was not added to spyderlib's rope > code (spyderlib\robe\...) > > Specifically, if the spyderlib\rope\base\builtins _object_attributes > function is changed to > > def _object_attributes(obj, parent): > attributes = {} > for name in dir(obj): > if name == 'None': > continue > child = getattr(obj, name, None) > if child is None: > continue > pyobject = None > if inspect.isclass(child): > pyobject = BuiltinClass(child, {}, parent=parent) > elif inspect.isroutine(child): > pyobject = BuiltinFunction(builtin=child, parent=parent) > else: > pyobject = BuiltinUnknown(builtin=child) > attributes[name] = BuiltinName(pyobject) > return attributes > > as stated in the patch from the link...it works. > > That's a great find, Matt. Would you mind creating a new issue report for this? That will make sure it doesn't get forgotten. -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
