[Python-projects] false positive: undefined variable for method references as decorator args
Sylvain Thénault
sylvain.thenault at logilab.fr
Tue Mar 27 13:54:06 CEST 2007
On Tuesday 27 March à 13:13, Thomas Moschny wrote:
> 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.
huum, good point. I'll add this to the tracker.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list