[Python-projects] NameError: global name 'set' is not defined

Alexandre Fayolle alexandre.fayolle at logilab.fr
Tue Jan 2 18:13:33 CET 2007


On Tue, Jan 02, 2007 at 06:09:49PM +0100, Maarten ter Huurne wrote:
> python-projects-bounces at lists.logilab.org wrote on 2007-01-02 06:04:25 PM:
> 
> > Not sure why I get the below stack trace.  I am using Pylint 0.12.2,
> > common 0.21.1, astng 0.16.3, and Python 2.3.5 on MS Windows XP.  Any
> > help is much appreciated.
> >
> > [...]
> >
> >   File "C:\bn\Python23\Lib\site-packages\pylint\checkers\typecheck.
> > py", line 92, in visit_getattr
> >     missingattr = set()
> > NameError: global name 'set' is not defined
> 
> The "set" class was introduced in Python 2.4.

Yes, but there should be a from logilab.common.compat import set
somewhere in typecheck.py. I'm not sure that we want to drop python2.3
support yet. 

-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science
Reprise et maintenance de sites CPS:     http://www.migration-cms.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20070102/49ae74ee/attachment.pgp 


More information about the Python-Projects mailing list