On 17 août 15:06, JT Olds wrote: > Hey all, Hi,
> I'm getting a weird error from pylint. I've reduced the code that > makes pylint choke to a small test case. When I run pylint on > > class Thing2(object): > def decorator(self, method): > def wrapper(*args, **kwargs): > return method(*args, **kwargs) > return wrapper > > class Thing1(object): > def __getattr__(self, name): > return Thing2() > > thing = Thing1() > > @thing.my_param.decorator > def test(): > print "hi" > > I get: > > Traceback (most recent call last): [snip] > line 116, in redefined_by_decorator > decorator.expr.name == node.name): > AttributeError: 'Getattr' object has no attribute 'name' > > Any ideas? This bug should have been fixed in earlier version of pylint. -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects