[Python-projects] pylint version 0.16.0 doesn't complain about uninitialized variable

Sylvain Thénault sylvain.thenault at logilab.fr
Mon Mar 9 11:20:15 CET 2009


Le Thursday 05 March 2009 13:50:02 Mads Kiilerich, vous avez écrit :
> Dotan Barak wrote:
> > Hi.
> >
> > I have the following function in my code:
[snip]
> > From doing code review by eye, i found out that the variable rc can be
> > returned without any initialization,
> > but the pylint could not find it.
>
> Yes, pylint doesn't handle conditional code blocks.
>
> A very similar issue was discussed "briefly" in the thread at
> http://lists.logilab.org/pipermail/python-projects/2009-February/001689.htm
>l , but I don't think any tracker issue was filed...

done now: http://www.logilab.org/ticket/8352
-- 
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