[Python-projects] E0602 False Negative ("print __dict__ is not None")

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Jan 13 19:22:04 CET 2009


Le Monday 12 January 2009 23:22:46 Nathaniel Manista, vous avez écrit :
> Hello all-

hi,

>     This is fairly trivial, but I couldn't find it currently tracked in the
> issue tracker. As the subject line indicates, the undefined-variable
> checker fails if the undefined variable is __dict__. I don't think anyone
> in their right mind would program that way, but that doesn't mean the check
> should fail.
>     I've attached a simple example that lints completely cleanly (against a
> recently-checked-out pylint) that when run generates a NameError.

I've added this to the tracker, it should be fixed in the next pylint version:

http://www.logilab.org/ticket/6949

thank you for reporting this bug
-- 
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