The following file: def f(): pass f.attr = 123 print f.attr
produces the following errors from pylint 0.20.0: W0612: 3: Unused variable 'attr' E1101: 4: Function 'f' has no 'attr' member I can understand the E1101, since it might be a reasonable simplification to assume that a function object has no attributes other than the standard ones, but the W0612 is very odd. James.
_______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
