[Python-projects] Bug in pylint 0.12.2?
Adrien Di Mascio
Adrien.DiMascio at logilab.fr
Tue Nov 28 15:25:22 CET 2006
Hi,
[Uwe Tapper]
> File "/usr/lib/python2.3/site-packages/pylint/checkers/typecheck.py",
> line 92, in visit_getattr
> missingattr = set()
> NameError: global name 'set' is not defined
>
> ------------------------------------
Oops !
> As a quick&dirty fix I added the line "from sets import Set as set" and
> pylint works (or seems to work) again.
I've fixed that by adding "from logilab.common.compat import set"
> Is this a bug or did I miss something in the instructions? Does pylint
> require Python > 2.4?
No. Pylint should also support python2.3 (as far as I know).
Thanks for reporting !
Cheers,
--
Adrien Di Mascio LOGILAB, Paris (France).
Formations Python,Zope,Debian,Calcul http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
Python in Python: http://codespeak.net/pypy/dist/pypy/doc/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20061128/2e2a15d7/attachment.pgp
More information about the Python-Projects
mailing list