hello,

On Monday 18 October 2010 14:47:43 James Lingard wrote:
> 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.

we have a ticket on it :
http://www.logilab.org/ticket/8847
and it's planned for the next release of pylint ...

thx anyway :)

-- 

Emile Anclin <[email protected]>
http://www.logilab.fr/   http://www.logilab.org/ 
Informatique scientifique & et gestion de connaissances
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to