[Python-projects] false positive: undefined variable for method references as decorator args

Thomas Moschny thomas.moschny at gmx.de
Tue Mar 27 13:13:11 CEST 2007

Sylvain Thénault wrote:
> > pylint 0.13.1 gives me an E0602 "Foo.foo: Undefined variable 'get_name'"
> > in the marked line, which imho is a false positive, as this code runs
> > fine with python 2.4.4, and I see no reason why one should not be able to
> > pass a reference to another method this way.
> which astng version are you using? This bug should have been fixed by
> the latest version.

I now tried with astng-0.17.0 (and logilab-common-0.21.2), but the problem is 
still there. You probably mean #3261, but that bug is about finding the 
decorator itself, not its arguments.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20070327/1a8f9f72/attachment.pgp 

More information about the Python-Projects mailing list